CoreObject#mergedProperties

mergedPropertiesArraypublic Defined in packages/ember-runtime/lib/system/core_object.js:324 Defines the properties that will be merged from the superclass (instead of overridden). By default, when you extend an Ember class a property defined in the subclass overrides a property with the same name that is defined in the superclass. However, there are some cases where it is preferable to build up a property's value by merging the superclass property value with the subclass property's value. A

CoreObject#reopenClass()

reopenClasspublic Defined in packages/ember-runtime/lib/system/core_object.js:717 Augments a constructor's own properties and functions: MyObject = Ember.Object.extend({ name: 'an object' }); MyObject.reopenClass({ canBuild: false }); MyObject.canBuild; // false o = MyObject.create(); In other words, this creates static properties and functions for the class. These are only available on the class and not on any instance of that class. App.Person = Ember.Object.extend({ name : "",

CoreObject#isDestroying

isDestroyingpublic Defined in packages/ember-runtime/lib/system/core_object.js:405 Destruction scheduled flag. The destroy() method has been called. The object stays intact until the end of the run loop at which point the isDestroyed flag is set. Default: false

CoreObject#isDestroyed

isDestroyedpublic Defined in packages/ember-runtime/lib/system/core_object.js:393 Destroyed object property flag. if this property is true the observers and bindings were already removed by the effect of calling the destroy() method. Default: false

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

CoreObject#concatenatedProperties

concatenatedPropertiesArraypublic Defined in packages/ember-runtime/lib/system/core_object.js:255 Defines the properties that will be concatenated from the superclass (instead of overridden). By default, when you extend an Ember class a property defined in the subclass overrides a property with the same name that is defined in the superclass. However, there are some cases where it is preferable to build up a property's value by combining the superclass' property value with the subclass' val

CoreObject#init()

initpublic Defined in packages/ember-runtime/lib/system/core_object.js:217 An overridable method called when objects are instantiated. By default, does nothing unless it is overridden during class definition. Example: App.Person = Ember.Object.extend({ init: function() { alert('Name is ' + this.get('name')); } }); var steve = App.Person.create({ name: "Steve" }); // alerts 'Name is Steve'. NOTE: If you do override init for a framework class like Ember.View, be sure to call this

Copyable#frozenCopy()

frozenCopyObjectdeprecatedprivate Defined in packages/ember-runtime/lib/mixins/copyable.js:42 Use Object.freeze instead. If the object implements Ember.Freezable, then this will return a new copy if the object is not frozen and the receiver if the object is frozen. Raises an exception if you try to call this method on a object that does not support freezing. You should use this method whenever you want a copy of a freezable object since a freezable object can simply return itself without

CoreObject

Ember.CoreObject Class PUBLIC Defined in: packages/ember-runtime/lib/system/core_object.js:204 Module: ember-runtime

Copyable#copy()

copy (deep) Objectprivate Defined in packages/ember-runtime/lib/mixins/copyable.js:29 Required. You must implement this method to apply this mixin. Override to return a copy of the receiver. Default implementation raises an exception. Parameters: deep Boolean if `true`, a deep copy of the object should be made Returns: Object copy of receiver