Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/414.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 未捕获类型错误:对象#<;对象>;没有方法';重新开放';(Ember.js)_Javascript_Ember.js - Fatal编程技术网

Javascript 未捕获类型错误:对象#<;对象>;没有方法';重新开放';(Ember.js)

Javascript 未捕获类型错误:对象#<;对象>;没有方法';重新开放';(Ember.js),javascript,ember.js,Javascript,Ember.js,我正在从预发布版升级到Ember js 1.0.0。我目前得到的标题错误 Ember.State.reopen( { active: false, enter: function() { this.set('active', true); }, exit: function() { this.set('active', false); } }); 是什么原因导致此错误以及如何修复此错误?自此之后,余烬状态已被删除

我正在从预发布版升级到Ember js 1.0.0。我目前得到的标题错误

Ember.State.reopen( {

    active: false,

    enter: function() {

        this.set('active', true);
    },

    exit: function() {

        this.set('active', false);
    }
});

是什么原因导致此错误以及如何修复此错误?

自此之后,余烬状态已被删除

你可以在网上找到它