Reputation: 13975
I am using a library isInViewport and I keep getting a error about Expected identifier
for line 8.
https://github.com/zeusdeux/isInViewport/blob/master/lib/isInViewport.js#L8
I am really confused why this is an issue as it is just
$.fn.do
I am also getting an error anytime I try and use jQuery.do
Any idea what is up?
Upvotes: 0
Views: 105
Reputation: 82734
do
is a reserved keyword in JavaScript. Actually, I'm surprised, that other browsers let it slip.
Upvotes: 2