MCPcopy Index your code
hub / github.com/stemkoski/stemkoski.github.com / releaseObject

Function releaseObject

MathBox/mathbox-bundle.js:35516–35525  ·  view source on GitHub ↗

* Releases the given object back to the object pool. * * @private * @param {Object} [object] The object to release.

(object)

Source from the content-addressed store, hash-verified

35514 * @param {Object} [object] The object to release.
35515 */
35516 function releaseObject(object) {
35517 var cache = object.cache;
35518 if (cache) {
35519 releaseObject(cache);
35520 }
35521 object.array = object.cache = object.criteria = object.object = object.number = object.string = object.value = null;
35522 if (objectPool.length < maxPoolSize) {
35523 objectPool.push(object);
35524 }
35525 }
35526
35527 /**
35528 * Slices the `collection` from the `start` index up to, but not including,

Callers 4

baseDifferenceFunction · 0.85
baseUniqFunction · 0.85
sortByFunction · 0.85
intersectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected