sociam / indx

INDX Server
http://sociam.github.io/
GNU Affero General Public License v3.0
42 stars 6 forks source link

native way to check if obj has been saved? #113

Open FlamingTempura opened 10 years ago

FlamingTempura commented 10 years ago

getObj(id) tries to get obj with id, otherwise returns a placeholder obj.

I should be able to check if this is a new obj (i.e., is not yet saved)? Backbone's Model.isNew() appears to be false regardless. Should we override isNew() to correspond to whether it's not yet stored, or create isSaved()?