Javascript 超级覆盖

Javascript 超级覆盖,javascript,node.js,oop,ember.js,mixins,Javascript,Node.js,Oop,Ember.js,Mixins,如何覆盖mixin,但仍保留旧的mixin功能 我有一个mixin,它在model之前使用,并且有一个路由: App.PlayRoute = Ember.Route.extend("beforeModelMixin", { beforeModel: { // Here i want to have mixin beforeModel functionality as well as my own hook. } } 上面的示例beforeModelMixin被覆

如何覆盖mixin,但仍保留旧的mixin功能

我有一个mixin,它在model之前使用
,并且有一个路由:

App.PlayRoute = Ember.Route.extend("beforeModelMixin", {
    beforeModel: {
        // Here i want to have mixin beforeModel functionality as well as my own hook.
    }
}
上面的示例
beforeModelMixin
被覆盖,不再工作,因为我再次定义了
beforeModel

可能吗