1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 12:44:13 +01:00

Move 'system' arg of Styles methods to arg 0, and add completion functions

This commit is contained in:
Kris Maglione
2008-12-19 17:11:05 -05:00
parent f5b2173979
commit 480151cc4d
7 changed files with 74 additions and 39 deletions

View File

@@ -920,8 +920,9 @@ function Completion() //{{{
case "}": pop("{"); /* Fallthrough */
case ";":
top[FULL_STATEMENTS].push(i);
break;
case ",":
top[COMMA];
top[COMMA].push(i);
break;
}
@@ -1158,6 +1159,7 @@ function Completion() //{{{
let [offset, obj, func] = getObjKey(-3);
if (!obj.length)
return;
obj = obj.slice(0, 1);
try
{
@@ -1176,7 +1178,7 @@ function Completion() //{{{
{
let arg = str.substring(prev + 1, idx);
prev = idx;
args.__defineGetter__(i, function () self.eval(ret));
args.__defineGetter__(i, function () self.eval(arg));
}
let key = getKey();
args.push(key + string);