这是我的代码。它在我的旧余烬中运行良好(即:pre-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