javascript - Why is JSHint throwing a "possible strict violation" on this line -


this question has answer here:

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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -