(methodName)
| 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]); |
no outgoing calls
no test coverage detected