Skip to content

Instantly share code, notes, and snippets.

@jhurliman
Last active August 29, 2015 13:59
Show Gist options
  • Save jhurliman/10568553 to your computer and use it in GitHub Desktop.
Save jhurliman/10568553 to your computer and use it in GitHub Desktop.
famo.us - Emit an event from Scrollview when the current node changes
myScrollView.render = function() {
_tickScrollViewRender() {
var prevNode = this._node;
var retValue = Scrollview.prototype.render.call(this);
var node = this._node;
if (node !== prevNode)
this._eventOutput.emit('sequenceChange', { node: node, prevNode: prevNode });
return retValue;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment