CoreObject#reopen()

reopenpublic Defined in packages/ember-runtime/lib/system/core_object.js:681 Augments a constructor's prototype with additional properties and functions: MyObject = Ember.Object.extend({ name: 'an object' }); o = MyObject.create(); o.get('name'); // 'an object' MyObject.reopen({ say: function(msg){ console.log(msg); } }) o2 = MyObject.create(); o2.say("hello"); // logs "hello" o.say("goodbye"); // logs "goodbye" To add functions and properties to the constructor itself, see r

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#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#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

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

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

Core Concepts

Core Concepts Before you start writing any Ember code, it's a good idea to get an overview of how an Ember application works. Router and Route Handlers Imagine we are writing a web app for a site that lets users list their properties to rent. At any given time, we should be able to answer questions about the current state like What rental are they looking at? and Are they editing it? In Ember, the answer to these questions is determined by the URL. The URL can be set in a few ways: The user

Copyable#willMergeMixin()

willMergeMixinprivate Defined in packages/ember-runtime/lib/mixins/controller_content_model_alias_deprecation.js:19 Available since 1.4.0