CoreObject#destroy()

destroyEmber.Objectpublic

Defined in packages/ember-runtime/lib/system/core_object.js:417

Destroys an object by setting the isDestroyed flag and removing its metadata, which effectively destroys observers and bindings.

If you try to set a property on a destroyed object, an exception will be raised.

Note that destruction is scheduled for the end of the run loop and does not happen immediately. It will set an isDestroying flag immediately.

Returns:

Ember.Object
receiver
doc_EmberJs
2016-11-30 16:49:00
Comments
Leave a Comment

Please login to continue.