lib/packages/core-classes.js
function(data_source) {

		if (Lava.schema.DEBUG && typeof(data_source) != 'object') Lava.t("Wrong argument passed to updateFromSourceObject");

		if (Array.isArray(data_source)) {

			this._updateFromArray(data_source, []);

		} else if (data_source.isCollection) {

			this._updateFromEnumerable(data_source);

		} else {

			this._updateFromObject(data_source.isProperties ? data_source.getProperties() : data_source);

		}

	}
function(data_source) {

		if (Lava.schema.DEBUG && typeof(data_source) != 'object') Lava.t("Wrong argument passed to updateFromSourceObject");

		if (Array.isArray(data_source)) {

			this._updateFromArray(data_source, []);

		} else if (data_source.isCollection) {

			this._updateFromEnumerable(data_source);

		} else {

			this._updateFromObject(data_source.isProperties ? data_source.getProperties() : data_source);

		}

	}
function ( data_source ) { if ( Lava . schema . DEBUG && typeof ( data_source ) != 'object' ) Lava . t ( "Wrong argument passed to updateFromSourceObject" ) ; if ( Array . isArray ( data_source ) ) { this . _updateFromArray ( data_source , [ ] ) ; } else if ( data_source . isCollection ) { this . _updateFromEnumerable ( data_source ) ; } else { this . _updateFromObject ( data_source . isProperties ? data_source . getProperties ( ) : data_source ) ; } }
Update the collection from `data_source`
@param {(Array|Object|Lava.mixin.Properties|Lava.system.Enumerable)} data_source
Update the collection from data_source