beforeCreate don't work #87

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
3 participants

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 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