src/js/utils.js
//the simple version to clone an object (but note that this will not handle descendants)
the simple version to clone an object (but note that this will not handle descendants)
the simple version to clone an object ( but note that this will not handle descendants )
function cloneObject(obj) {
	if (null == obj || "object" != typeof obj) return obj;
	var copy = obj.constructor();
	for (var attr in obj) {
		if (obj.hasOwnProperty(attr)) copy[attr] = obj[attr];
	}
	return copy;
}
function cloneObject ( obj ) { if ( null == obj || "object" != typeof obj ) return obj ; var copy = obj . constructor ( ) ; for ( var attr in obj ) { if ( obj . hasOwnProperty ( attr ) ) copy [ attr ] = obj [ attr ] ; } return copy ; }
the simple version to clone an object (but note that this will not handle descendants)
the simple version to clone an object ( but note that this will not handle descendants )