1

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?


Should I use filter_var to validate email?

I have a class that validates every input before I send it to the database layer. Note that my problem is not about escaping or anything. My database layer will handle the SQL Injection problem. All I want to do is validate if the email is valid or not because later that email might be used as a 'send to'. For instance, the user will recover access to his account through a link sent to the e-mail. I read a lot about filter_var and there are a bunch of people being against it and other bunch being in favor. Keeping the focus on 'I just want to validate email and not filter it for database or for html or XSS or whatever', is there a problem in using filter_var?

4

1 回答 1

2

自此拉取请求以来,Ember 状态已被删除

您可以在ember-states github 存储库中找到它

于 2013-10-22T15:38:18.950 回答