eval() bug in IE
eval('function(){}') evaluates to undefined in IE, the same for eval('(function(){})').
How to get the Function?
eval('[function(){}][0]')
IE, you always let me down!
Arrix writes about web development, programming and all his weird thoughts
eval('function(){}') evaluates to undefined in IE, the same for eval('(function(){})').
How to get the Function?
eval('[function(){}][0]')
IE, you always let me down!
Posted by Arrix at 4:55 PM
Labels: hack, javascript
1 comments:
I found another way (and am using it in jQuery right now):
eval("false||function(){...}");
Post a Comment