Uncaught TypeError: Cannot read property ‘msie’ of undefined jQuery

a simple fix for Uncaught TypeError: Cannot read property ‘msie’ of undefined jQuery

// Fixed: Uncaught TypeError: Cannot read property 'msie' of undefined jQuery
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;
    }
})();

Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.