updated model isNew to use idAttribute

This commit is contained in:
Tim Branyen
2011-07-21 22:00:05 -04:00
parent ca8a0491e7
commit 70cc8ee87b

View File

@@ -342,7 +342,7 @@
// A model is new if it has never been saved to the server, and lacks an id.
isNew : function() {
return this.id == null;
return this[this.idAttribute] == null;
},
// Call this method to manually fire a `change` event for this model.