Ember.guidFor()

guidFor (obj) Stringpublic

Defined in packages/ember-metal/lib/utils.js:167

Returns a unique id for the object. If the object does not yet have a guid, one will be assigned to it. You can call this on any object, Ember.Object-based or not, but be aware that it will add a _guid property.

You can also use this method on DOM Element objects.

Parameters:

obj Object
any object, string, number, Element, or primitive

Returns:

String
the unique guid for this instance.
doc_EmberJs
2016-11-30 16:51:29
Comments
Leave a Comment

Please login to continue.