MCPcopy Index your code
hub / github.com/codrops/RainEffect / fixMethod

Function fixMethod

demo/js/main.js:477–486  ·  view source on GitHub ↗
(KEY)

Source from the content-addressed store, hash-verified

475 , proto = C && C.prototype
476 , O = {};
477 var fixMethod = function(KEY){
478 var fn = proto[KEY];
479 require('./$.redef')(proto, KEY,
480 KEY == 'delete' ? function(a){ return fn.call(this, a === 0 ? 0 : a); }
481 : KEY == 'has' ? function has(a){ return fn.call(this, a === 0 ? 0 : a); }
482 : KEY == 'get' ? function get(a){ return fn.call(this, a === 0 ? 0 : a); }
483 : KEY == 'add' ? function add(a){ fn.call(this, a === 0 ? 0 : a); return this; }
484 : function set(a, b){ fn.call(this, a === 0 ? 0 : a, b); return this; }
485 );
486 };
487 if(typeof C != 'function' || !(IS_WEAK || proto.forEach && !require('./$.fails')(function(){
488 new C().entries().next();
489 }))){

Callers 1

main.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected