Skip to content

Instantly share code, notes, and snippets.

@davydotcom
Created January 10, 2013 18:23
Show Gist options
  • Save davydotcom/4504488 to your computer and use it in GitHub Desktop.
Save davydotcom/4504488 to your computer and use it in GitHub Desktop.
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