javascript - Why is JSHint throwing a "possible strict violation" on this line -
this question has answer here:
- why jshint complaining strict violation? 4 answers
trying validate javascript in jshint, , following:
possible strict violation:
return ($.event.dispatch || $.event.handle).apply(this, args);
any ideas why it's throwing error?
thanks guys
jshint isn't sure whether function code in called actual this
.
to tell jshint how function called , suppress warning, add /*jshint validthis: true */
top of function.
Comments
Post a Comment