Created
March 25, 2014 01:07
-
-
Save andrewhassan/9753429 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (var rfid in rfid_list) { | |
var clickHandler = function () { | |
$('html, body').animate({ | |
scrollTop: $("[data-filter='rfid-" + rfid + "']").offset().top // When this runs, the value of rfid is the last value | |
}, 500); | |
}; | |
// I removed unimportant code | |
text = g.click(clickHandler); // This is SnapSVG .click function | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment