MCPcopy Create free account
hub / github.com/DanWahlin/CustomerManagerStandard / clone

Function clone

CustomerManager/Scripts/breeze.debug.js:11736–11764  ·  view source on GitHub ↗
(that, propName, value)

Source from the content-addressed store, hash-verified

11734 // private functions
11735
11736 function clone(that, propName, value) {
11737 // immutable queries mean that we don't need to clone if no change in value.
11738 if (propName) {
11739 if (that[propName] === value) return that;
11740 }
11741 // copying QueryOptions is safe because they are are immutable;
11742 var copy = __extend(new EntityQuery(), that, [
11743 "resourceName",
11744 "fromEntityType",
11745 "wherePredicate",
11746 "orderByClause",
11747 "selectClause",
11748 "skipCount",
11749 "takeCount",
11750 "expandClause",
11751 "inlineCountEnabled",
11752 "noTrackingEnabled",
11753 "usesNameOnServer",
11754 "queryOptions",
11755 "entityManager",
11756 "dataService",
11757 "resultEntityType"
11758 ]);
11759 copy.parameters = __extend({}, that.parameters);
11760 if (propName) {
11761 copy[propName] = value;
11762 }
11763 return copy;
11764 }
11765
11766 function processUsing(eq, map, value, propertyName) {
11767 var typeName = value._$typeName || (value.parentEnum && value.parentEnum.name);

Callers 1

breeze.debug.jsFile · 0.85

Calls 1

__extendFunction · 0.85

Tested by

no test coverage detected