Skip to content

Instantly share code, notes, and snippets.

@drhayes
Created January 14, 2013 06:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drhayes/4528168 to your computer and use it in GitHub Desktop.
Save drhayes/4528168 to your computer and use it in GitHub Desktop.
EventChain's during function
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