MutableArray#replace()

replace (idx, amt, objects) public

Defined in packages/ember-runtime/lib/mixins/mutable_array.js:69

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

This is one of the primitives you must implement to support Ember.Array. You should replace amt objects started at idx with the objects in the passed array. You should also call this.enumerableContentDidChange()

Parameters:

idx Number
Starting index in the array to replace. If idx >= length, then append to the end of the array.
amt Number
Number of elements that should be removed from the array, starting at *idx*.
objects Array
An array of zero or more objects that should be inserted into the array at *idx*
doc_EmberJs
2016-11-30 16:52:36
Comments
Leave a Comment

Please login to continue.