如何覆盖mixin但仍保留旧的mixin功能。
我有一个使用beforeModel
的mixin,并且有一条路线:
App.PlayRoute = Ember.Route.extend("beforeModelMixin", {
beforeModel: {
// Here i want to have mixin beforeModel functionality as well as my own hook.
}
}
以上示例beforeModelMixin
被覆盖,不再有效,因为我再次定义了beforeModel
。
这可能吗?