1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-08 03:44:14 +01:00

Remove some redundant uses of "new".

This commit is contained in:
Doug Kearns
2009-11-14 23:07:56 +11:00
parent 90410f2bf6
commit 52749d6722
12 changed files with 23 additions and 21 deletions

View File

@@ -496,7 +496,7 @@ const CompletionContext = Class("CompletionContext", {
fork: function fork(name, offset, self, completer) {
if (typeof completer == "string")
completer = self[completer];
let context = new CompletionContext(this, name, offset);
let context = CompletionContext(this, name, offset);
this.contextList.push(context);
if (completer)
return completer.apply(self || this, [context].concat(Array.slice(arguments, arguments.callee.length)));
@@ -753,7 +753,7 @@ const Completion = Module("completion", {
}
//}}}
}, {
UrlCompleter: new Struct("name", "description", "completer"),
UrlCompleter: Struct("name", "description", "completer"),
Javascript: Class("Javascript", {
init: function () {