Last active
July 10, 2019 15:59
-
-
Save mig1098/318707fd11790dff4c47532610db67fd to your computer and use it in GitHub Desktop.
jquery browser, Uncaught TypeError: Cannot read property 'msie' of undefined
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Uncaught TypeError: Cannot read property 'msie' of undefined */ | |
/* add to jquery to fix */ | |
jQuery.browser = {}; | |
(function () { | |
jQuery.browser.msie = false; | |
jQuery.browser.version = 0; | |
if (navigator.userAgent.match(/MSIE ([0-9]+)\./)) { | |
jQuery.browser.msie = true; | |
jQuery.browser.version = RegExp.$1; | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
docs for this issue:
https://jquery.com/upgrade-guide/1.9/#jquery-browser-removed