Last active
August 29, 2015 13:59
-
-
Save jhurliman/10568553 to your computer and use it in GitHub Desktop.
famo.us - Emit an event from Scrollview when the current node changes
This file contains hidden or 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
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