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();
}
}
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.
Tick
Tolerate uncapitalized constructorsor rename toresizeGrid();to prevent lint from assuming its a function constructor (although calling an undefinedvarlike that will raise other errors).