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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user