SwVitaliy

Untitled

Oct 16th, 2012
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function NativeCode() {
  2.  
  3.                 function nc(fn) {
  4.                     fn.toString = function () {
  5.                         return '[ native code ]';
  6.                     };
  7.                 }
  8.  
  9.                 function eachNC(obj) {
  10.                     _.each(obj, function (v) {
  11.                         if (typeof v === 'function') {
  12.                             nc(v);
  13.                         }
  14.                     });
  15.                 }
  16.  
  17.                 nc(this);
  18.                 eachNC(this.prototype);
  19.                 eachNC(this);
  20.             }
Advertisement
Add Comment
Please, Sign In to add comment