Bug 783025 - Replace String.indexOf(...) != -1 with String.contains(...). r=dao
This commit is contained in:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user