graduate Posted January 23, 2012 Share Posted January 23, 2012 In "strict mode" there is no property "callee" in the arguments object in a function.I'm wondering why? It was very convenient to refer to itself (recursion). What do you think? Link to comment Share on other sites More sharing options...
justsomeguy Posted January 23, 2012 Share Posted January 23, 2012 It looks like most of the reasons are for efficiency in optimizing the code. Mozilla claims that the use case for arguments.callee is weak, and that you should just name the function to call, but that doesn't apply for anonymous functions. There's not a replacement for it in strict mode. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.