Tracking if object was changed

11 views
Skip to first unread message

Kirill Grishin

unread,
Jul 5, 2012, 6:24:01 AM7/5/12
to seren...@googlegroups.com
Is there a function or a property on the model to track if it was changed?

Something like:

var Dude = Serenade.Model.extend('Dude ', function() {
    this.property("name", { serialize: true });
    this.property("changed", { get: {
        function() { return isChanged() }
    } });
}

This is needed to see if any of the properties of an object were changed at all.

Thank you,
Kirill
Reply all
Reply to author
Forward
0 new messages