Skip to content

Instantly share code, notes, and snippets.

@stephendeyoung
Created November 11, 2014 13:42
Show Gist options
  • Save stephendeyoung/d5622f86d9d5ac3edf38 to your computer and use it in GitHub Desktop.
Save stephendeyoung/d5622f86d9d5ac3edf38 to your computer and use it in GitHub Desktop.
$(window).bind("cuePoint", function(event, action) {
self.onCuePoint(action); // action = { eventType: ..., value: ... }
});
onCuePoint: function(action) {
if (action.eventType == "slideChange") {
this.collection.currentActive = action.value;
this.collection.setActive(action.value);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment