1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-22 21:25:46 +01:00

Remove cruft.

This commit is contained in:
Kris Maglione
2013-03-05 21:05:26 -08:00
parent 45b26712df
commit 990a2bbbc7
2 changed files with 1 additions and 129 deletions

View File

@@ -20,13 +20,6 @@ let { __lookupGetter__, __lookupSetter__, __defineGetter__, __defineSetter__,
if (typeof XPCSafeJSObjectWrapper === "undefined")
this.XPCSafeJSObjectWrapper = XPCNativeWrapper;
if (!XPCNativeWrapper.unwrap)
XPCNativeWrapper.unwrap = function unwrap(obj) {
if (hasOwnProperty.call(obj, "wrappedJSObject"))
return obj.wrappedJSObject;
return obj;
};
let getGlobalForObject = Cu.getGlobalForObject || function (obj) obj.__parent__;
function require(module, target) JSMLoader.load(module, target);
@@ -208,7 +201,6 @@ function debuggerProperties(obj) {
* @returns {Generator}
*/
function prototype(obj)
/* Temporary hack: */ typeof obj === "xml" || obj.__proto__ !== obj.__proto__ ? null :
obj.__proto__ || Object.getPrototypeOf(obj) ||
XPCNativeWrapper.unwrap(obj).__proto__ ||
Object.getPrototypeOf(XPCNativeWrapper.unwrap(obj));