Created
January 24, 2013 10:35
-
-
Save zeppelin/4619780 to your computer and use it in GitHub Desktop.
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
MyRoute = Ember.Route.extend({ | |
events: { | |
doSomething: function() { | |
console.log('Yes sir!'); | |
} | |
} | |
}); | |
// If your controller already has a method named `doSomething`, | |
// it'll take precedence over the router's event, as the controller | |
// is now the default target. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment