Skip to content

Instantly share code, notes, and snippets.

@jensgro
Created January 27, 2014 07:36
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jensgro/8644462 to your computer and use it in GitHub Desktop.
Save jensgro/8644462 to your computer and use it in GitHub Desktop.
// bringt $.browser zum modernen jQuery zurück
// brings back $.browser to modern 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;
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment