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:
@@ -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);
|
||||
}
|
||||
//}}}
|
||||
} //}}}
|
||||
|
||||
Reference in New Issue
Block a user