X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=0.6.x%2Fjs%2Fcore%2F00_builtin.js;h=6d4b1a144bcd2dbc45fe4325e02319368c58d4eb;hb=53149facb2f22305d34b9ac01803a6af433355d0;hp=081d8a08b6065133d545920172cec0ca764d1b18;hpb=80c361b64bd6d12ba49479e882dd586fe3995829;p=pettanr%2FclientJs.git diff --git a/0.6.x/js/core/00_builtin.js b/0.6.x/js/core/00_builtin.js index 081d8a0..6d4b1a1 100644 --- a/0.6.x/js/core/00_builtin.js +++ b/0.6.x/js/core/00_builtin.js @@ -36,15 +36,15 @@ Function.prototype.apply || (Function.prototype.apply = function (x, y) { a = []; for (i = 0; i < j; ++i) a[i] = 'y[' + i + ']'; - r = eval('x.__apply(' + a.join(',') + ')'); + //r = eval('x.__apply(' + a.join(',') + ')'); + // closuer compiler 対策 + r = (new Function( 'x,y', 'return x.__apply(' + a.join(',') + ')' ))( x, y ); break; }; - // delete x.__apply ? x.__apply : x.constructor.prototype.__apply ; // ie5 if( x === window ){ x.__apply = void 0; } else { - //delete x.__apply ? x.__apply : x.constructor.prototype.__apply ; if( x.constructor && x.constructor.prototype.__apply ){ delete x.constructor.prototype.__apply; } else