src/defineReact.js
function filterByStoreKeys(storeKeys, obj)
{
	// if there are not storeKeys defined then simply return the whole original object
	if (!storeKeys) {
		return obj;
	}
	// otherwise go through and only update properties that are in the storeKeys array, and return straight false if there are none
	var doUpdate = false;
	var updateObj = {};
	for (var i = 0, ii = storeKeys.length; i < ii; i++) {
		var prop = storeKeys[i];
		if (obj.hasOwnProperty(prop)) {
			doUpdate = true;
			updateObj[prop] = obj[prop];
		}
	}
	return doUpdate ? updateObj : false;
}
function filterByStoreKeys(storeKeys, obj)
{
	// if there are not storeKeys defined then simply return the whole original object
	if (!storeKeys) {
		return obj;
	}
	// otherwise go through and only update properties that are in the storeKeys array, and return straight false if there are none
	var doUpdate = false;
	var updateObj = {};
	for (var i = 0, ii = storeKeys.length; i < ii; i++) {
		var prop = storeKeys[i];
		if (obj.hasOwnProperty(prop)) {
			doUpdate = true;
			updateObj[prop] = obj[prop];
		}
	}
	return doUpdate ? updateObj : false;
}
function filterByStoreKeys ( storeKeys , obj ) { // if there are not storeKeys defined then simply return the whole original object if ( ! storeKeys ) { return obj ; } // otherwise go through and only update properties that are in the storeKeys array, and return straight false if there are none var doUpdate = false ; var updateObj = { } ; for ( var i = 0 , ii = storeKeys . length ; i < ii ; i ++ ) { var prop = storeKeys [ i ] ; if ( obj . hasOwnProperty ( prop ) ) { doUpdate = true ; updateObj [ prop ] = obj [ prop ] ; } } return doUpdate ? updateObj : false ; }
filters a state object by storeKeys array (if it exists) if filtering and obj contains no properties to use, returns false to let the component know not to update
filters a state object by storeKeys array ( if it exists ) if filtering and obj contains no properties to use returns false to let the component know not to update