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

Make things not explode.

This commit is contained in:
Kris Maglione
2012-01-15 15:50:14 -05:00
parent 16ca1f4983
commit 53d6587fc7
4 changed files with 34 additions and 7 deletions

View File

@@ -55,7 +55,7 @@ var JavaScript = Module("javascript", {
newContext: function () this.modules.newContext(this.modules.userContext, true),
get completers() JavaScript.completers, // For backward compatibility
completers: Class.Memoize(function () Object.create(JavaScript.completers)),
// Some object members are only accessible as function calls
getKey: function (obj, key) {
@@ -550,7 +550,7 @@ var JavaScript = Module("javascript", {
}
catch (e) {}
if (!completer)
completer = JavaScript.completers[funcName];
completer = this.completers[funcName];
if (!completer)
return null;