我有如下所示的代码,我只是想知道如何在路由事件中触发另一个事件。想法?
App.MyRoute = Ember.Route.extend({
events: {
eventOne: function() {
// do something
},
eventTwo: function() {
// how do I call eventOne() here?
},
}
});
我有如下所示的代码,我只是想知道如何在路由事件中触发另一个事件。想法?
App.MyRoute = Ember.Route.extend({
events: {
eventOne: function() {
// do something
},
eventTwo: function() {
// how do I call eventOne() here?
},
}
});