View Single Post
Old 01-30-2013, 07:22 PM   PM User | #7
sunfighter
Senior Coder

 
Join Date: Jan 2011
Location: Missouri
Posts: 2,399
Thanks: 18
Thanked 352 Times in 351 Posts
sunfighter is on a distinguished road
I really don't know where your coming from Stephen. Why would anyone use window.jQuery? I personally use the $ sign. I'm sure you do also.
and I never used
Code:
function f() {
var a; // declaration moved to where it is actually run
alert(window.a);
and never would.

It was not about the "use strict" statement that you introduced. It was just showing that window.variable can be used to get a global variable into a local variable with little work like:
globalgal being a global variable and:
Code:
function f(){
var localelady = window.globalgal;
allows you access it with little to no sweat.
sunfighter is offline   Reply With Quote