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

[bootstrap] Add code to manually reload stale cached modules on rehash.

--HG--
branch : bootstrapped
This commit is contained in:
Kris Maglione
2010-12-25 08:54:33 -05:00
parent 53786141e1
commit a759ab3606
14 changed files with 122 additions and 78 deletions

View File

@@ -11,9 +11,9 @@ defineModule("highlight", {
use: ["template", "util"]
});
const Highlight = Struct("class", "selector", "sites",
"default", "value", "agent",
"base", "baseClass", "style");
var Highlight = Struct("class", "selector", "sites",
"default", "value", "agent",
"base", "baseClass", "style");
Highlight.liveProperty = function (name, prop) {
let i = this.prototype.members[name];
this.prototype.__defineGetter__(name, function () this[i]);
@@ -52,7 +52,7 @@ Highlight.prototype.toString = function ()
*
* @author Kris Maglione <maglione.k@gmail.com>
*/
const Highlights = Module("Highlight", {
var Highlights = Module("Highlight", {
init: function () {
this.highlight = {};
this.loaded = {};