MutableEnumerable#addObject()

addObject (object) Objectpublic

Defined in packages/ember-runtime/lib/mixins/mutable_enumerable.js:52

Required. You must implement this method to apply this mixin.

Attempts to add the passed object to the receiver if the object is not already present in the collection. If the object is present, this method has no effect.

If the passed object is of a type not supported by the receiver, then this method should raise an exception.

Parameters:

object Object
The object to add to the enumerable.

Returns:

Object
the passed object
doc_EmberJs
2016-11-30 16:52:38
Comments
Leave a Comment

Please login to continue.