Add "use strict" at the top of your js file (on line 1 of your .js file):
"use strict"; ... function initialize_page() { var signin_found; signin_found=document.getElementById('signin_button'); if(signin_found) {
More on "use strict" in another question here in stackoverflow:
What is "use strict" to do in JavaScript and what are the reasons for this?
UPDATE
There is something wrong with jshint.com, it requires you to "use strict" inside each function, but you need to allow it globally for each file.
jshint.com thinks this is wrong.
"use strict"; function asd() { }
But there is nothing wrong with that ...
He wants you to use "use strict" for each function:
function asd() { "use strict"; } function blabla() { "use strict"; }
Then he says:
Good job! JSHint did not find any problems with your code.
Czarek Tomczak Nov 12 '11 at 19:46 2011-11-12 19:46
source share