mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-04 12:04:12 +01:00
More bootstrap work.
--HG-- branch : bootstrapped
This commit is contained in:
@@ -79,6 +79,11 @@ const Hive = Class("Hive", {
|
||||
this.names = {};
|
||||
},
|
||||
|
||||
cleanup: function cleanup() {
|
||||
for (let sheet in values(this.sheets))
|
||||
sheet.enabled = false;
|
||||
},
|
||||
|
||||
__iterator__: function () Iterator(this.sheets),
|
||||
|
||||
get sites() array(this.sheets).map(function (s) s.sites).flatten().uniq().array,
|
||||
@@ -214,6 +219,11 @@ const Styles = Module("Styles", {
|
||||
this.system = Hive();
|
||||
},
|
||||
|
||||
cleanup: function cleanup() {
|
||||
for each (let hive in [this.user, this.system])
|
||||
hive.cleanup();
|
||||
},
|
||||
|
||||
__iterator__: function () Iterator(this.user.sheets.concat(this.system.sheets)),
|
||||
|
||||
_proxy: function (name, args)
|
||||
|
||||
Reference in New Issue
Block a user