emberJS mixin超级覆盖

时间:2014-08-01 08:13:46

标签: javascript node.js oop ember.js mixins

如何覆盖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

这可能吗?

0 个答案:

没有答案