Created
November 11, 2011 04:03
-
-
Save xenophy/1357164 to your computer and use it in GitHub Desktop.
Next JS Module Dynamic Bind
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
module.exports = { | |
execute: function() { | |
var me = this; | |
me.bind('mod1', function() { | |
me.mod1.foo(function(ret) { | |
me.dump(ret); | |
me.end(); | |
}); | |
}); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment