I\'m working on a plug-in for jQuery and I\'m getting this JSLint error:
Problem at line 80 character 45: Do not use \'new\' for side effects.
(new jQuery.faste
From jQuery fasterTrim source code:
* Usage:
*
* $(element).fasterTrim(options); // returns jQuery object
* $.fasterTrim.trim(" string ", options); // returns trimmed string
To answer the question, "Do not use new for side effects" means:
Do not use new for what the constructor will do to its parameters but to create an object, side effects in constructors are baaaad!