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

Promises cleanup.

This commit is contained in:
Kris Maglione
2015-03-02 18:12:57 -08:00
parent c84c657d27
commit 7b2f821e04
10 changed files with 160 additions and 126 deletions

View File

@@ -182,7 +182,6 @@ defineModule("base", {
"Cr",
"Cs",
"Cu",
"DOMPromise",
"ErrorBase",
"Finished",
"JSMLoader",
@@ -762,12 +761,6 @@ function memoize(obj, key, getter) {
}
}
let sandbox = Cu.Sandbox(Cc["@mozilla.org/systemprincipal;1"].createInstance(),
{ wantGlobalProperties: ["TextDecoder", "TextEncoder"],
sandboxPrototype: this });
var { TextEncoder, TextDecoder, Promise: DOMPromise } = sandbox;
/**
* Updates an object with the properties of another object. Getters
* and setters are copied as expected. Moreover, any function