Skip to content

Instantly share code, notes, and snippets.

@sjorsrijsdam
Created November 13, 2013 15:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sjorsrijsdam/7451315 to your computer and use it in GitHub Desktop.
Save sjorsrijsdam/7451315 to your computer and use it in GitHub Desktop.
Quick and dirty hack to monkey patch Mootools and stop IE11 from crapping itself.
// Add this to mootool core just before
// Browser[Browser.name] = true;
// Browser[Browser.name + parseInt(Browser.version, 10)] = true;
// Browser.Platform[Browser.Platform.name] = true;
if (ua.indexOf('trident/7.0') > -1) {
Browser.name = 'ie';
Browser.version = '11';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment