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? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -