mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 16:02:26 +01:00
Refactor the Styles API and implimentation slightly. Move deprecated() to base.jsm.
This commit is contained in:
@@ -463,7 +463,7 @@ const Hints = Module("hints", {
|
||||
if (hint.imgSpan)
|
||||
css.push(selector + imgSpan + " { " + hint.span.style.cssText + " }");
|
||||
}
|
||||
styles.addSheet(true, "hint-positions", "*", css.join("\n"));
|
||||
styles.system.add("hint-positions", "*", css.join("\n"));
|
||||
}
|
||||
|
||||
return true;
|
||||
@@ -484,7 +484,7 @@ const Hints = Module("hints", {
|
||||
for (let i in util.range(start, end + 1))
|
||||
this._setClass(this._pageHints[i].elem, null);
|
||||
}
|
||||
styles.removeSheet(true, "hint-positions");
|
||||
styles.system.remove("hint-positions");
|
||||
|
||||
this._reset(slight);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user