Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

9
  • apparently it's the same, can you post the underscore js code where that is done? Commented Dec 13, 2012 at 18:02
  • No arguments are getting passed -- call is being used to set this inside the callback. Still, I also don't see why this is necessary solely from the code you've posted. Commented Dec 13, 2012 at 18:04
  • The function starts at Line 6, variable root is decalred on line 12 and then the call is at the very bottom. The whole file is one big function. Commented Dec 13, 2012 at 18:06
  • @KingKongFrog are you saying that var root = this; could have been written as var root = window;? Commented Dec 13, 2012 at 18:20
  • 1
    No I'm saying var root = this works regardless of passing in "this" as argument in the call. Commented Dec 13, 2012 at 18:21