vendor/kinetic-v5.1.0.js
function(methodName) {
                    var origMethod = that[methodName],
                        ret;

                    that[methodName] = function() {
                        args = _simplifyArray(Array.prototype.slice.call(arguments, 0));
                        ret = origMethod.apply(that, arguments);
           
                        that._trace({
                            method: methodName,
                            args: args
                        });
                 
                        return ret;
                    };
            }
function(methodName) {
                    var origMethod = that[methodName],
                        ret;

                    that[methodName] = function() {
                        args = _simplifyArray(Array.prototype.slice.call(arguments, 0));
                        ret = origMethod.apply(that, arguments);
           
                        that._trace({
                            method: methodName,
                            args: args
                        });
                 
                        return ret;
                    };
            }
function ( methodName ) { var origMethod = that [ methodName ] , ret ; that [ methodName ] = function ( ) { args = _simplifyArray ( Array . prototype . slice . call ( arguments , 0 ) ) ; ret = origMethod . apply ( that , arguments ) ; that . _trace ( { method : methodName , args : args } ) ; return ret ; } ; }
to prevent creating scope function at each loop
to prevent creating scope function at each loop