From 167ae9942dae9557c6891f7b96f8b174b7cf30fb Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Thu, 2 Oct 2008 13:33:21 +0000 Subject: [PATCH] replace some $_ variables - identifiers starting with "$" are reserved --- content/completion.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/completion.js b/content/completion.js index b73ef1ac..fbedc7e3 100644 --- a/content/completion.js +++ b/content/completion.js @@ -79,7 +79,7 @@ liberator.Completion = function () //{{{ } else { - substrings = substrings.filter(function ($_) complist[j].indexOf($_) >= 0); + substrings = substrings.filter(function (s) complist[j].indexOf(s) >= 0); } } break; @@ -117,7 +117,7 @@ liberator.Completion = function () //{{{ } else { - substrings = substrings.filter(function ($_) complist[j].indexOf($_) == 0); + substrings = substrings.filter(function (s) complist[j].indexOf(s) == 0); } } break; @@ -195,7 +195,7 @@ liberator.Completion = function () //{{{ } if (!filter) - return [0, items.map(function ($_) [$_[0][0], $_[1]])]; + return [0, items.map(function (i) [i[0][0], i[1]])]; return [0, buildLongestCommonSubstring(items, filter)]; }, @@ -577,7 +577,7 @@ liberator.Completion = function () //{{{ } else { - substrings = substrings.filter(function ($_) url.indexOf($_) >= 0); + substrings = substrings.filter(function (s) url.indexOf(s) >= 0); } filtered.push(elem);