1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-04-05 00:53:32 +02:00

Fix config.addon bug and augment Class.memoize somewhat.

This commit is contained in:
Kris Maglione
2011-02-14 16:47:57 -05:00
parent 9ef146b93b
commit 0a008b6a51
3 changed files with 40 additions and 26 deletions

View File

@@ -61,13 +61,13 @@ var ConfigBase = Class("ConfigBase", {
if (addon && !addon.getResourceURI)
util.reportError(Error("Don't have add-on yet"));
return !addon || addon.getResourceURI();
return !addon || addon.getResourceURI;
});
if (!addon)
addon = require("addons").AddonManager.getAddonByID(this.addonID);
return addon;
}),
}, true),
/**
* The current application locale.