如何在新的ember-v1.0.0-rc.1.js中调用_super()?

时间:2013-02-27 06:40:05

标签: javascript ember.js

这是我的代码。它在我的旧余烬中工作正常(即:0.4之前)

Ember.Router.reopen({
    startRouting: function() {
        this._super(); // This line shows some error
    },
    transitionTo: function(name, param) {}
});

现在我已升级到新的ember(即ember-v1.0.0-rc.1.js)。之后我的茉莉花在我的控制台中显示出一些错误。有人可以帮忙吗?这是我的错误控制台:

> app/libs/ember-v1.0.0-rc.1.js:60  app/libs/ember-v1.0.0-rc.1.js:22975
> doTransition app/libs/ember-v1.0.0-rc.1.js:22830 
> app/common/route.js:24  app/libs/ember-v1.0.0-rc.1.js:892 superWrapper
> app/libs/ember-v1.0.0-rc.1.js:23085  app/common/route.js:52 
> app/libs/ember-v1.0.0-rc.1.js:892 superWrapper
> app/libs/ember-v1.0.0-rc.1.js:23116  app/common/route.js:39 
> app/libs/ember-v1.0.0-rc.1.js:892 superWrapper
> app/libs/ember-v1.0.0-rc.1.js:22460 
> app/libs/ember-v1.0.0-rc.1.js:22486 eachHandler
> app/libs/ember-v1.0.0-rc.1.js:22464 setupContexts
> app/libs/ember-v1.0.0-rc.1.js:22363 collectObjects
> app/libs/ember-v1.0.0-rc.1.js:22392 proceed
> app/libs/ember-v1.0.0-rc.1.js:22379 collectObject

0 个答案:

没有答案