Bug 783025 - Replace String.indexOf(...) != -1 with String.contains(...). r=dao

This commit is contained in:
Amod
2012-09-08 21:26:25 +02:00
parent aa0bc5d44a
commit fafb80c6ba
11 changed files with 16 additions and 16 deletions

View File

@@ -57,8 +57,8 @@ let RemoteTabViewer = {
let item = this._tabsList.getItemAtIndex(i);
let hide = false;
if (item.getAttribute("type") == "tab") {
if (item.getAttribute("url").toLowerCase().indexOf(val) == -1 &&
item.getAttribute("title").toLowerCase().indexOf(val) == -1)
if (!item.getAttribute("url").toLowerCase().contains(val) &&
!item.getAttribute("title").toLowerCase().contains(val))
hide = true;
else
clientTabs++;