Trying to test Javascript in JsHint and I get the following:
Possible severe violation:
return ($.event.dispatch || $.event.handle).apply(this, args);
Any ideas why this is throwing this error?
Thanks guys,
JSHint is not sure if the function in which the code is located will be called with the actual this .
this
To tell JSHint how the function will be called and suppress this warning, add /*jshint validthis: true */ at the beginning of the function.
/*jshint validthis: true */