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:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user