mercredi 1 juillet 2015

How to delete a property from an Emberjs Object?

Plain old Javascript object properties can be deleted like so...

var foo = {bar: 'baz'};
delete foo.bar

How do you delete (not just set to null) a property in an Ember object?

var foo = Ember.Object.create({bar: 'baz'});




Aucun commentaire:

Enregistrer un commentaire