1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 09:32:28 +01:00

Define option getters to return Optionhints.jsvalues rather than #value.

This commit is contained in:
Kris Maglione
2010-09-24 16:11:17 -04:00
parent 3645cd27d0
commit 5bf3784ab2
5 changed files with 11 additions and 12 deletions

View File

@@ -698,7 +698,7 @@ const Hints = Module("hints", {
if (options.get("hintmatching").has("transliterated"))
indexOf = Hints.indexOf;
switch (options.get("hintmatching").values[0]) {
switch (options["hintmatching"][0]) {
case "contains" : return containsMatcher(hintString);
case "wordstartswith": return wordStartsWithMatcher(hintString, /*allowWordOverleaping=*/ true);
case "firstletters" : return wordStartsWithMatcher(hintString, /*allowWordOverleaping=*/ false);