mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-27 11:55:46 +01:00
Respond to "how would one knwo which classes to load where?"
This commit is contained in:
@@ -149,6 +149,13 @@ const config = { //{{{
|
|||||||
// load Vimperator specific modules
|
// load Vimperator specific modules
|
||||||
// FIXME: Why aren't these listed in config.scripts?
|
// FIXME: Why aren't these listed in config.scripts?
|
||||||
// FIXME: Why isn't this automatic? -> how would one know which classes to load where? --mst
|
// FIXME: Why isn't this automatic? -> how would one know which classes to load where? --mst
|
||||||
|
// Something like:
|
||||||
|
// liberator.addModule("search", function Search() { ...
|
||||||
|
// for all modules, or something similar. For modules which
|
||||||
|
// require other modules, well, there's addObserver("load_foo",
|
||||||
|
// or we could just make sure that they're all sourced in order.
|
||||||
|
// The scripts could even just instantiate them themselves.
|
||||||
|
// --Kris
|
||||||
liberator.loadModule("search", Search);
|
liberator.loadModule("search", Search);
|
||||||
liberator.loadModule("bookmarks", Bookmarks);
|
liberator.loadModule("bookmarks", Bookmarks);
|
||||||
liberator.loadModule("history", History);
|
liberator.loadModule("history", History);
|
||||||
|
|||||||
Reference in New Issue
Block a user