1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-18 12:14:10 +01:00

Deal with Firefox 3 being crap.

This commit is contained in:
Kris Maglione
2011-02-08 21:17:56 -05:00
parent d32ca13364
commit 8aa02f6d7a

View File

@@ -672,7 +672,8 @@ function Class() {
return res !== undefined ? res : self;
})]]>,
"constructor", (name || superclass.className).replace(/\W/g, "_"))
.replace("PARAMS", /^function .*?\((.*?)\)/.exec(args[0] && args[0].init || Class.prototype.init)[1]));
.replace("PARAMS", /^function .*?\((.*?)\)/.exec(args[0] && args[0].init || Class.prototype.init)[1]
.replace(/\b(self|res|Constructor)\b/g, "$1_")));
Constructor.className = name || superclass.className || superclass.name;