Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

beforeCreate don't work #87

Closed
wants to merge 1 commit into from
Closed

beforeCreate don't work #87

wants to merge 1 commit into from

Conversation

by5739
Copy link

@by5739 by5739 commented May 22, 2012

because after trigger beforeCreate, data is not update which is change in beforeCreate

in abstract-class.js

AbstractClass.create = function (data, callback) {
    ...
    function create() {
        obj.trigger('create', function (done) {
            var data = obj.toObject(true); 
            ....
        })
    }
}

@giano
Copy link

giano commented Jun 26, 2012

Refer to #72 (comment) for the full patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants