lib/packages/core-classes.js
function(index, value, name) {

		if (index > this._count) Lava.t("Index is out of range");

		var old_uid = this._data_uids[index],
			old_value = this._data_values[index],
			old_name = this._data_names[index],
			new_uid = this._uid++;

		this._data_uids[index] = new_uid;
		this._data_values[index] = value;
		if (name) {
			this._data_names[index] = name;
		}

		this._fire('items_removed', {
			uids: [old_uid],
			values: [old_value],
			names: [old_name]
		});

		this._fire('items_added', {
			uids: [new_uid],
			values: [value],
			names: [this._data_names[index]]
		});

		this._fire('collection_changed');

	}
function(index, value, name) {

		if (index > this._count) Lava.t("Index is out of range");

		var old_uid = this._data_uids[index],
			old_value = this._data_values[index],
			old_name = this._data_names[index],
			new_uid = this._uid++;

		this._data_uids[index] = new_uid;
		this._data_values[index] = value;
		if (name) {
			this._data_names[index] = name;
		}

		this._fire('items_removed', {
			uids: [old_uid],
			values: [old_value],
			names: [old_name]
		});

		this._fire('items_added', {
			uids: [new_uid],
			values: [value],
			names: [this._data_names[index]]
		});

		this._fire('collection_changed');

	}
function ( index , value , name ) { if ( index > this . _count ) Lava . t ( "Index is out of range" ) ; var old_uid = this . _data_uids [ index ] , old_value = this . _data_values [ index ] , old_name = this . _data_names [ index ] , new_uid = this . _uid ++ ; this . _data_uids [ index ] = new_uid ; this . _data_values [ index ] = value ; if ( name ) { this . _data_names [ index ] = name ; } this . _fire ( 'items_removed' , { uids : [ old_uid ] , values : [ old_value ] , names : [ old_name ] } ) ; this . _fire ( 'items_added' , { uids : [ new_uid ] , values : [ value ] , names : [ this . _data_names [ index ] ] } ) ; this . _fire ( 'collection_changed' ) ; }
Replace the corresponding `value` and `name` at specified `index`, generating a new UID
@param {number} index Index of value in Enumerable
@param {*} value New value for given index
@param {number} [name] New name for the value
Replace the corresponding value and name at specified index generating a new UID