Ember.wrap()

wrap (func, superFunc) Functionprivate Defined in packages/ember-metal/lib/utils.js:276 Wraps the passed function so that this._super will point to the superFunc when the function is invoked. This is the primitive we use to implement calls to super. Parameters: func Function The function to call superFunc Function The super function. Returns: Function wrapped function.

Ember.watchedEvents()

watchedEvents (obj) private Defined in packages/ember-metal/lib/events.js:183 Return a list of currently watched events Parameters: obj

Ember.watch()

watch (obj, _keyPath) private Defined in packages/ember-metal/lib/watching.js:24 Starts watching a property on an object. Whenever the property changes, invokes Ember.propertyWillChange and Ember.propertyDidChange. This is the primitive used by observers and dependent keys; usually you will never call this method directly but instead use higher level methods like Ember.addObserver() Parameters: obj _keyPath String

Ember.warn()

warn (message, test, options) public Defined in packages/ember-debug/lib/warn.js:26 Display a warning with the provided message. In a production build, this method is defined as an empty function (NOP). Uses of this method in Ember itself are stripped from the ember.prod.js build. Parameters: message String A warning to display. test Boolean An optional boolean. If falsy, the warning will be displayed. options Object An object that can be used to pass a unique `id` for this war

Ember.VERSION

VERSIONStringpublic Defined in packages/ember-metal/lib/index.js:308 The semantic version

Ember.validatePropertyInjections()

validatePropertyInjections (factory) private Defined in packages/ember-runtime/lib/inject.js:39 Available since 1.10.0 Validation function that runs per-type validation functions once for each injected type encountered. Parameters: factory Object The factory object

Ember.typeOf()

typeOf (item) Stringpublic Defined in packages/ember-runtime/lib/utils.js:55 Returns a consistent type for the passed object. Use this instead of the built-in typeof to get the type of an item. It will return the same result across all browsers and includes a bit more detail. Here is what will be returned: | Return Value | Meaning | |---------------|------------------------------------------------------| | 'string' | String primitive or Str

Ember.trySet()

trySet (root, path, value) public Defined in packages/ember-metal/lib/property_set.js:130 Error-tolerant form of Ember.set. Will not blow up if any part of the chain is undefined, null, or destroyed. This is primarily used when syncing bindings, which may try to update after an object has been destroyed. Parameters: root Object The object to modify. path String The property path to set value Object The value to set

Ember.tryInvoke()

tryInvoke (obj, methodName, args) *public Defined in packages/ember-metal/lib/utils.js:338 Checks to see if the methodName exists on the obj, and if it does, invokes it with the arguments passed. let d = new Date('03/15/2013'); Ember.tryInvoke(d, 'getTime'); // 1363320000000 Ember.tryInvoke(d, 'setFullYear', [2014]); // 1394856000000 Ember.tryInvoke(d, 'noSuchMethod', [2014]); // undefined Parameters: obj Object The object to check for the method methodName String T

Ember.suspendListeners()

suspendListeners (obj, eventNames, target, method, callback) private Defined in packages/ember-metal/lib/events.js:162 Suspends multiple listeners during a callback. Parameters: obj eventNames Array Array of event names target Object|Function A target object or a function method Function|String A function or the name of a function to be called on `target` callback Function