Code below passed through JSLint causes an error:
Problem at line 8 character 9: Missing 'new'.
ResizeGrid();
How to fix?
"use strict";
var ResizeGrid;
function t() {
var x;
if (x) {
ResizeGrid();
}
}
Tick Tolerate uncapitalized constructors
or rename to resizeGrid();
to prevent lint from assuming its a function constructor (although calling an undefined var
like that will raise other errors).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With