On IE,
  f(function foo() { ... })
introduces a variable foo in the containing scope, so turning an anonymous
function into a named function can have implications for scope collisions
and possibly for garbage collection.



2008/12/16 Mike Stay <[email protected]>

>
> ES3.1 strict mode disallows the use of arguments.callee; at the
> moment, that's one of the major issues in getting jQuery to run green
> in Caja.  Would you be willing to name the anonymous functions that
> use arguments.callee in jQuery, and then call the function by name
> instead?
>
> It will also (unless you choose an 8-letter name) make your code smaller!
> --
> Mike Stay - [email protected]
> http://math.ucr.edu/~mike <http://math.ucr.edu/%7Emike>
> http://reperiendi.wordpress.com
>

Reply via email to