1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-13 20:05:46 +01:00

Fix mailbird.

This commit is contained in:
Kris Maglione
2009-11-09 14:14:51 -05:00
parent 5de5a79ce5
commit dd924d0822
7 changed files with 82 additions and 73 deletions

View File

@@ -1,3 +1,13 @@
// Copyright (c) 2009 by Kris Maglione <maglione.k@gmail.com>
//
// This work is licensed for reuse under an MIT license. Details are
// given in the LICENSE.txt file included with this file.
const Cc = Components.classes;
const Ci = Components.interfaces;
const Cr = Components.results;
const Cu = Components.utils;
function array(obj) {
if (isgenerator(obj))
obj = [k for (k in obj)];
@@ -182,8 +192,10 @@ function update(targ) {
}
function extend(subc, superc, overrides) {
subc.prototype = { __proto__: superc.prototype };
subc.prototype = {};
update(subc.prototype, overrides);
// This is unduly expensive.
subc.prototype.__proto__ = superc.prototype;
subc.superclass = superc.prototype;
subc.prototype.constructor = subc;