Copyable#frozenCopy()

frozenCopyObjectdeprecatedprivate

Defined in packages/ember-runtime/lib/mixins/copyable.js:42

Use Object.freeze instead.

If the object implements Ember.Freezable, then this will return a new copy if the object is not frozen and the receiver if the object is frozen.

Raises an exception if you try to call this method on a object that does not support freezing.

You should use this method whenever you want a copy of a freezable object since a freezable object can simply return itself without actually consuming more memory.

Returns:

Object
copy of receiver or receiver
doc_EmberJs
2016-11-30 16:48:59
Comments
Leave a Comment

Please login to continue.