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

Function __using

CustomerManager/Scripts/breeze.debug.js:448–463  ·  view source on GitHub ↗
(obj, property, tempValue, fn)

Source from the content-addressed store, hash-verified

446 }
447
448 function __using(obj, property, tempValue, fn) {
449 var originalValue = obj[property];
450 if (tempValue === originalValue) {
451 return fn();
452 }
453 obj[property] = tempValue;
454 try {
455 return fn();
456 } finally {
457 if (originalValue === undefined) {
458 delete obj[property];
459 } else {
460 obj[property] = originalValue;
461 }
462 }
463 }
464
465 function __wrapExecution(startFn, endFn, fn) {
466 var state;

Callers 3

breeze.debug.jsFile · 0.85
removeFromRelationsFunction · 0.85
processSavedEntitiesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected