1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-02 13:52:28 +01:00

move Option constructor to Options, move

Options.{getPref,setPref,getFirefoxPref,setFirefoxPref} to a slot in
vimperator.options and move all option initialisation to Options()
This commit is contained in:
Doug Kearns
2007-08-06 12:52:33 +00:00
parent 0ab80a8d3a
commit 6508cb8c65
4 changed files with 108 additions and 102 deletions

View File

@@ -84,7 +84,7 @@ function CommandLine() //{{{
var multiline_callback = null;
// load the commandline history
var hist = Options.getPref("commandline_history", "");
var hist = vimperator.options.getPref("commandline_history", "");
history = hist.split("\n");
// TODO: these styles should be moved to the .css file
@@ -564,7 +564,7 @@ function CommandLine() //{{{
// it would be better if we had a destructor in javascript ...
this.destroy = function()
{
Options.setPref("commandline_history", history.join("\n"));
vimperator.options.setPref("commandline_history", history.join("\n"));
}
//}}}
} //}}}