MCPcopy
hub / github.com/ericdrowell/KineticJS / func

Function func

kinetic.js:1824–1839  ·  view source on GitHub ↗
(methodName)

Source from the content-addressed store, hash-verified

1822
1823 // to prevent creating scope function at each loop
1824 var func = function(methodName) {
1825 var origMethod = that[methodName],
1826 ret;
1827
1828 that[methodName] = function() {
1829 args = _simplifyArray(Array.prototype.slice.call(arguments, 0));
1830 ret = origMethod.apply(that, arguments);
1831
1832 that._trace({
1833 method: methodName,
1834 args: args
1835 });
1836
1837 return ret;
1838 };
1839 };
1840 // methods
1841 for (n=0; n<len; n++) {
1842 func(CONTEXT_METHODS[n]);

Callers 2

kinetic.jsFile · 0.70
node-runner.jsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected