From 8a9e8d60d2ef1ca434fee2a4e2fdfc77813f83c1 Mon Sep 17 00:00:00 2001 From: Nathan Rajlich Date: Fri, 6 Jul 2012 19:41:01 -0700 Subject: [PATCH] readline: don't use Function#call() It wasn't necessary. --- lib/readline.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/readline.js b/lib/readline.js index 52091f7a9b2..7348201fa9b 100644 --- a/lib/readline.js +++ b/lib/readline.js @@ -350,13 +350,13 @@ Interface.prototype._tabComplete = function() { for (var i = 0, compLen = completions.length; i < compLen; i++) { c = completions[i]; if (c === '') { - handleGroup.call(self, group, width, maxColumns); + handleGroup(self, group, width, maxColumns); group = []; } else { group.push(c); } } - handleGroup.call(self, group, width, maxColumns); + handleGroup(self, group, width, maxColumns); // If there is a common prefix to all matches, then apply that // portion. @@ -373,8 +373,7 @@ Interface.prototype._tabComplete = function() { }; // this = Interface instance -function handleGroup(group, width, maxColumns) { - var self = this; +function handleGroup(self, group, width, maxColumns) { if (group.length == 0) { return; }