MCPcopy
hub / github.com/stemkoski/stemkoski.github.com / getObject

Function getObject

MathBox/mathbox-bundle.js:35479–35495  ·  view source on GitHub ↗

* Gets an object from the object pool or creates a new one if the pool is empty. * * @private * @returns {Object} The object from the pool.

()

Source from the content-addressed store, hash-verified

35477 * @returns {Object} The object from the pool.
35478 */
35479 function getObject() {
35480 return objectPool.pop() || {
35481 'array': null,
35482 'cache': null,
35483 'criteria': null,
35484 'false': false,
35485 'index': 0,
35486 'null': false,
35487 'number': null,
35488 'object': null,
35489 'push': null,
35490 'string': null,
35491 'true': false,
35492 'undefined': false,
35493 'value': null
35494 };
35495 }
35496
35497 /**
35498 * Releases the given array back to the array pool.

Callers 2

createCacheFunction · 0.70
sortByFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected