mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-10 13:55:46 +01:00
Fix Minefield.
This commit is contained in:
@@ -145,10 +145,10 @@ var Highlights = Module("Highlight", {
|
|||||||
|
|
||||||
let highlight = this.highlight[key] || this._create(false, [key]);
|
let highlight = this.highlight[key] || this._create(false, [key]);
|
||||||
|
|
||||||
let extends = extend || highlight.extend;
|
let bases = extend || highlight.extend;
|
||||||
if (append) {
|
if (append) {
|
||||||
newStyle = Styles.append(highlight.value || "", newStyle);
|
newStyle = Styles.append(highlight.value || "", newStyle);
|
||||||
extends = highlight.extends.concat(extends);
|
bases = highlight.extends.concat(bases);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (/^\s*$/.test(newStyle))
|
if (/^\s*$/.test(newStyle))
|
||||||
@@ -161,11 +161,11 @@ var Highlights = Module("Highlight", {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
newStyle = highlight.defaultValue;
|
newStyle = highlight.defaultValue;
|
||||||
extends = highlight.defaultExtends;
|
bases = highlight.defaultExtends;
|
||||||
}
|
}
|
||||||
|
|
||||||
highlight.set("value", newStyle || "");
|
highlight.set("value", newStyle || "");
|
||||||
highlight.extends = array.uniq(extends, true);
|
highlight.extends = array.uniq(bases, true);
|
||||||
if (force)
|
if (force)
|
||||||
highlight.style.enabled = true;
|
highlight.style.enabled = true;
|
||||||
this.highlight[highlight.class] = highlight;
|
this.highlight[highlight.class] = highlight;
|
||||||
|
|||||||
Reference in New Issue
Block a user