Ember.isEqual()

isEqual (a, b) Booleanpublic Defined in packages/ember-runtime/lib/is-equal.js:1 Compares two objects, returning true if they are equal. Ember.isEqual('hello', 'hello'); // true Ember.isEqual(1, 2); // false isEqual is a more specific comparison than a triple equal comparison. It will call the isEqual instance method on the objects being compared, allowing finer control over when objects should be considered equal to each other. let Person =

Ember.isEmpty()

isEmpty (obj) Booleanpublic Defined in packages/ember-metal/lib/is_empty.js:4 Verifies that a value is null or an empty string, empty array, or empty function. Constrains the rules on Ember.isNone by returning true for empty string and empty arrays. Ember.isEmpty(); // true Ember.isEmpty(null); // true Ember.isEmpty(undefined); // true Ember.isEmpty(''); // true Ember.isEmpty([]); // true Ember.isEmpty({}); // false Embe

Ember.isBlank()

isBlank (obj) Booleanpublic Defined in packages/ember-metal/lib/is_blank.js:3 Available since 1.5.0 A value is blank if it is empty or a whitespace string. Ember.isBlank(); // true Ember.isBlank(null); // true Ember.isBlank(undefined); // true Ember.isBlank(''); // true Ember.isBlank([]); // true Ember.isBlank('\n\t'); // true Ember.isBlank(' '); // true Ember.isBlank({}); // false Ember.isBlank('\n\

Ember.isArray()

isArray (obj) Booleanpublic Defined in packages/ember-runtime/lib/utils.js:20 Returns true if the passed object is an array or Array-like. Objects are considered Array-like if any of the following are true: the object is a native Array the object has an objectAt property the object is an Object, and has a length property Unlike Ember.typeOf this method returns true even if the passed object is not formally an array but appears to be array-like (i.e. implements Ember.Array) Ember.isArray();

Ember.inspect()

inspect (obj) Stringprivate Defined in packages/ember-metal/lib/utils.js:398 Available since 1.4.0 Convenience method to inspect an object. This method will attempt to convert the object into a useful string description. It is a pretty simple implementation. If you want something more robust, use something like JSDump: https://github.com/NV/jsDump Parameters: obj Object The object you want to inspect. Returns: String A description of the object

Ember.inject.service()

service (name) Ember.InjectedPropertypublic Defined in packages/ember-runtime/lib/system/service.js:5 Available since 1.10.0 Creates a property that lazily looks up a service in the container. There are no restrictions as to what objects a service can be injected into. Example: App.ApplicationRoute = Ember.Route.extend({ authManager: Ember.inject.service('auth'), model: function() { return this.get('authManager').findCurrentUser(); } }); This example will create an authManager p

Ember.inject.controller()

controller (name) Ember.InjectedPropertypublic Defined in packages/ember-runtime/lib/controllers/controller.js:31 Available since 1.10.0 Creates a property that lazily looks up another controller in the container. Can only be used when defining another controller. Example: App.PostController = Ember.Controller.extend({ posts: Ember.inject.controller() }); This example will create a posts property on the post controller that looks up the posts controller in the container, making it easy t

Ember.inject

Ember.inject Namespace PUBLIC Defined in: packages/ember-runtime/lib/inject.js:4 Module: ember-runtime Namespace for injection helper methods.

Ember.info()

infoprivate Defined in packages/ember-debug/lib/index.js:78 Display an info notice. 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.

Ember.hasListeners()

hasListeners (obj, eventName) private Defined in packages/ember-metal/lib/events.js:244 Parameters: obj eventName String