When I open jQuery’s source code I find this line.
var // Will speed up references to window, and allows munging its name. window = this
Why and how this line will speed up?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
this==window).'window = this;'simply creates a local identifier in that scope so that references to it do not have to ‘bubble up’ outside of the local scope to resolve.