This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function test() { | |
| function testApply() { | |
| function f(a) { return function() { return a.apply(this, arguments); }} | |
| var g1 = f(function(){ this.x = 2; return {y: 3}; }); | |
| for (var i = 0; i < 50; i++) { | |
| if ((new g1(2)).x !== undefined) | |
| throw Error(); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var hasWorkingNestedRedirectedCalls = (function () { | |
| function f(a) { return function() { return a.apply(this, arguments); }} | |
| var g1 = f(function(a) { return a; }); | |
| var g2 = new g1(g1); | |
| return typeof g2 == "function"; | |
| })(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| window.opera.addEventListener("AfterScript", function(e) { | |
| if (typeof jQuery != "undefined" && jQuery.prototype.lazyload) { | |
| jQuery.prototype.lazyload = function() {}; | |
| } | |
| }, false); |