Skip to content

Instantly share code, notes, and snippets.

@AlexMocioi
Created September 12, 2014 14:34
Show Gist options
  • Save AlexMocioi/dd6fc77fe3f4e90a0159 to your computer and use it in GitHub Desktop.
Save AlexMocioi/dd6fc77fe3f4e90a0159 to your computer and use it in GitHub Desktop.
Ăsta e codul de compatibilizare în spate pentru jQuery când o ia la pachet !!!
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