mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-04 11:24:10 +01:00
Use builtin Array.find rather than array.nth where applicable.
This commit is contained in:
@@ -550,7 +550,7 @@ var Tabs = Module("tabs", {
|
||||
if (matches)
|
||||
return tabs.select(this.allTabs[parseInt(matches[1], 10) - 1], false);
|
||||
|
||||
matches = array.nth(tabs.allTabs, t => (t.linkedBrowser.lastURI || {}).spec === buffer, 0);
|
||||
matches = tabs.allTabs.find(t => (t.linkedBrowser.lastURI || {}).spec === buffer);
|
||||
if (matches)
|
||||
return tabs.select(matches, false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user