简体   繁体   中英

Uncaught TypeError: Object #<Object> has no method 'reopen' (Ember.js)

I'm updating from a prerelease to Ember js 1.0.0. I'm currently getting the title error for

Ember.State.reopen( {

    active: false,

    enter: function() {

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

    exit: function() {

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

What causes this error and how do I fix it?

Ember states has been removed since this pull request

You can find it in ember-states github repository

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM