Sha256: e975dd665b778c6d221f6b65faea6930530a1f89c84e2c1b99fdebd6ef434a5a

Contents?: true

Size: 835 Bytes

Versions: 2

Compression:

Stored size: 835 Bytes

Contents

/**
@module ember
*/

import { Mixin } from 'ember-metal';

/**
  Implements some standard methods for copying an object. Add this mixin to
  any object you create that can create a copy of itself. This mixin is
  added automatically to the built-in array.

  You should generally implement the `copy()` method to return a copy of the
  receiver.

  @class Copyable
  @namespace Ember
  @since Ember 0.9
  @deprecated Use 'ember-copy' addon instead
  @private
*/
export default Mixin.create({
  /**
    __Required.__ You must implement this method to apply this mixin.

    Override to return a copy of the receiver. Default implementation raises
    an exception.

    @method copy
    @param {Boolean} deep if `true`, a deep copy of the object should be made
    @return {Object} copy of receiver
    @private
  */
  copy: null,
});

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
discourse-ember-source-3.5.1.1 dist/es/ember-runtime/lib/mixins/copyable.js
discourse-ember-source-3.5.1.0 dist/dist/es/ember-runtime/lib/mixins/copyable.js