I keep trying to grab the objectId for the Parse Parse.Model object I'm working with. The only success I've had it to use the following:
this.model.toJSON().objectId
This seems to plicated and slow since I should be able to just access a property on the object. Attempts to the use the following have only resulted in a undefined value.
this.model.get("objectId")
Any ideas on what I've missed for accessing this value?
I keep trying to grab the objectId for the Parse. Parse.Model object I'm working with. The only success I've had it to use the following:
this.model.toJSON().objectId
This seems to plicated and slow since I should be able to just access a property on the object. Attempts to the use the following have only resulted in a undefined value.
this.model.get("objectId")
Any ideas on what I've missed for accessing this value?
Share Improve this question asked Apr 15, 2013 at 18:16 devNoisedevNoise 3743 silver badges12 bronze badges1 Answer
Reset to default 7You can access the object id through the id
property:
this.model.id