Created
January 10, 2013 18:23
-
-
Save davydotcom/4504488 to your computer and use it in GitHub Desktop.
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
if (Ext.firefoxVersion >= 18) { | |
var noArgs = []; | |
Ext.override(Ext.Base, { | |
callParent : function(args) { | |
var method, superMethod = (method = this.callParent.caller) && | |
(method.$previous || ((method = method.$owner ? | |
method : | |
method.caller) && method.$owner.superclass[method.$name])); | |
// Workarround for Firefox 18. I don't know why this works, but it does. Perhaps functions wich have | |
// a try-catch block are handled differently | |
try { | |
} catch (e) { | |
} | |
return superMethod.apply(this, args || noArgs); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment