I keep getting an expected identifier error at this line in my code =/
$.fn.myPlugin = $.myPlugin;
any idea why this might be happening?
I keep getting an expected identifier error at this line in my code =/
$.fn.myPlugin = $.myPlugin;
any idea why this might be happening?
Actually I just found the answer here:
http://www.ventanazul.com/webzine/articles/javascript-expected-identifier-error-internet-explorer
Some coffees later I found the offending code was:
var class = $(this).parent().attr('class');
Yep, class seems to be a reserved word in Internet Explorer, thanks again Microsoft for making web developers lifes so difficult.
I just changed the variable name to fix the error, something like this:
var tabClass = $(this).parent().attr('class');