MCPcopy Create free account
hub / github.com/CreateJS/PreloadJS / update

Function update

lib/preloadjs-NEXT.js:1811–1818  ·  view source on GitHub ↗
(source, property, callback)

Source from the content-addressed store, hash-verified

1809
1810 // Internal: Updates a traversed object member.
1811 var update = function (source, property, callback) {
1812 var element = walk(source, property, callback);
1813 if (element === undef) {
1814 delete source[property];
1815 } else {
1816 source[property] = element;
1817 }
1818 };
1819
1820 // Internal: Recursively traverses a parsed JSON object, invoking the
1821 // `callback` function for each value. This is an implementation of the

Callers 1

walkFunction · 0.70

Calls 1

walkFunction · 0.70

Tested by

no test coverage detected