I would like to unset()
the _id
attribute from an instance of a model, to make a POST
request using the save()
model method.
But i get a Uncaught TypeError: Object [object Object] has no method 'call' backbone-min.js
because of this line:
myModel.unset('_id');
I am using idAttribute: "_id"
so i tried:
myModel.unset('id');
But it doesn't unset the _id
attribute.