1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-14 03:45:45 +01:00

Cleanup changed preferences on disable.

This commit is contained in:
Kris Maglione
2011-08-02 10:46:06 -04:00
parent 4dcef46f08
commit 377ef1332a
2 changed files with 58 additions and 28 deletions

View File

@@ -611,7 +611,7 @@ function call(fn) {
*/
function memoize(obj, key, getter) {
if (arguments.length == 1) {
obj = update({}, obj);
obj = update({ __proto__: obj.__proto__ }, obj);
for (let prop in Object.getOwnPropertyNames(obj)) {
let get = __lookupGetter__.call(obj, prop);
if (get)