1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 10:57:58 +01:00

Cleanup some stuffs.

This commit is contained in:
Kris Maglione
2009-11-03 19:50:10 -05:00
parent d4b818b7d7
commit 68dd615648
3 changed files with 18 additions and 27 deletions

View File

@@ -262,7 +262,7 @@ CompletionContext.prototype = {
lists.pop());
if (!substrings) // FIXME: How is this undefined?
return [];
return util.Array.uniq(substrings);
return util.Array.uniq(Array.slice(substrings));
},
// Temporary
get longestAllSubstring()
@@ -1049,8 +1049,10 @@ function Completion() //{{{
let end = (frame == -1 ? lastIdx : get(frame + 1)[OFFSET]);
cacheKey = null;
let obj = [[cache.evalContext, "Local Variables"], [userContext, "Global Variables"],
[modules, "modules"], [window, "window"]]; // Default objects;
let obj = [[cache.evalContext, "Local Variables"],
[userContext, "Global Variables"],
[modules, "modules"],
[window, "window"]]; // Default objects;
// Is this an object dereference?
if (dot < statement) // No.
dot = statement - 1;