Created
January 14, 2013 06:33
-
-
Save drhayes/4528168 to your computer and use it in GitHub Desktop.
EventChain's during function
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
update.during = function(doThis) { | |
if (!steps) { | |
throw new Error('during only works with previous step!'); | |
} | |
var func = steps[steps.length - 1]; | |
steps[steps.length - 1] = function() { | |
doThis(); | |
func(); | |
}; | |
return this; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment