Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove $.browser #114

Closed
jamietre opened this issue Jan 17, 2013 · 3 comments
Closed

Remove $.browser #114

jamietre opened this issue Jan 17, 2013 · 3 comments

Comments

@jamietre
Copy link
Owner

Feature gone from jquery 1.9

@alieneila
Copy link

I've gotten around that by adding this to the maphighlight.js file (I use the min version)...

function getIEVer(){var rv=-1;if(navigator.appName=='Microsoft Internet Explorer'){var ua=navigator.userAgent;var re=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");if(re.exec(ua)!=null)rv=parseFloat(RegExp.$1);}return rv;}iever = getIEVer();

and then there are 2 places to modify...

(m.hasCanvas=e),$.browser.msie&&!m.hasCanvas

to

(m.hasCanvas=e),iever>-1&&!m.hasCanvas

and

r=e.browser.msie&&e.browser.version<=7

to

r=iever>-1&&iever<=7

@jamietre
Copy link
Owner Author

Thanks for the workaround. This looks perfectly fine, I am horribly delinquent in addressing this.

@jamietre
Copy link
Owner Author

Fixed in 1.2.9 just pushed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants