Created
November 27, 2012 09:44
-
-
Save Takazudo/4153361 to your computer and use it in GitHub Desktop.
lazyEventModuleWithBackbone
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
class Module | |
_.extend Module::, Backbone.Events | |
class App extends Module | |
app = new App | |
app.on 'hoge', -> | |
console.log 'hoge done!' | |
app.trigger 'hoge' # hoge done! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment