We should also explain how to use $.proxy and/or Function.prototype.bind to control the scope of a function later on, as well as the good old var that = this pattern.
var that = this
I've reached out to Yehuda to see if he would be okay with us borrowing some of his content for this. Failing this, I know WebReflection and one or two others have also covered this topic before.
When you say we should cover $.proxy, do you mean in another section or in JS101? I mentioned this in another issue but perhaps it would make sense to avoid jQuery examples here and cover those in follow up sections?.
@addyosmani I think we should avoid jQuery examples in JS101, thus moving $.proxy to a different section. I think it makes sense to keep JS101 and jQuery separate.
Hey @ajpiano thanks for the mention :) I'd be happy to contribute content from that article into the site. How best do you want to go about it?
@jackfranklin: Does your gracious offer still stand?
@adrocknaphobia wow, forgot about this! Yes it does :)
@jackfranklin Awesome, sorry about the..... lull :)
The best thing to do is just fork this repo and work your content into the existing scope article and file a pull request. I think this article is going to be a somewhat low-level, "Scope: What is This," and then we should have a separate article on scope manipulation, how you can do it, and how it happens a lot under the hood in jQuery.
This was addressed a year ago in 6fc9783.