1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-17 06:25:58 +01:00

Don't Be Evil.

--HG--
rename : pentadactyl/skin/icon.png => pentadactyl/icon16.png
This commit is contained in:
Kris Maglione
2011-09-11 15:06:46 -04:00
parent 68d8bf74df
commit 345cce5a42
8 changed files with 41 additions and 28 deletions

View File

@@ -993,6 +993,12 @@ Class.prototype = {
localizedProperties: {},
magicalProperties: {}
};
for (let name in properties(Class.prototype)) {
let desc = Object.getOwnPropertyDescriptor(Class.prototype, name);
desc.enumerable = false;
Object.defineProperty(Class.prototype, name, desc);
}
Class.makeClosure = function makeClosure() {
const self = this;
function closure(fn) {
@@ -1059,7 +1065,12 @@ function XPCOMShim(interfaces) {
return (interfaces || []).reduce(function (shim, iface) shim.QueryInterface(Ci[iface]),
ip.data)
};
function stub() null;
let stub = Class.Property({
configurable: true,
enumerable: false,
value: function stub() null,
writable: true
});
/**
* An abstract base class for classes that wish to inherit from Error.