1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 04:14:11 +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

@@ -722,7 +722,7 @@ function QuickMarks() //{{{
var marks = {};
// load the saved quickmarks -- TODO: change to sqlite
var saved_marks = Options.getPref("quickmarks", "").split("\n");
var saved_marks = vimperator.options.getPref("quickmarks", "").split("\n");
for (var i = 0; i < saved_marks.length - 1; i += 2)
{
marks[saved_marks[i]] = saved_marks[i + 1];
@@ -783,7 +783,7 @@ function QuickMarks() //{{{
saved_marks += i + "\n";
saved_marks += marks[i] + "\n";
}
Options.setPref("quickmarks", saved_marks);
vimperator.options.setPref("quickmarks", saved_marks);
}
//}}}
} //}}}