From 228dbfbb8c1c8fe7f3d579df2fb3532d2aadeef4 Mon Sep 17 00:00:00 2001 From: Colin Caine Date: Tue, 14 Feb 2017 01:27:02 +0000 Subject: [PATCH] Add comment about future work. --- addon/main.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addon/main.coffee b/addon/main.coffee index 2b5ae018..7eb762f0 100644 --- a/addon/main.coffee +++ b/addon/main.coffee @@ -33,6 +33,9 @@ nextTab1 = () -> # TODO: limit to focused window. nextTab2 = () -> # Alternative implementation without list comprehensions. + # + # If querying all tabs to get number of tabs is too slow (as if), could + # query for index+1 and then test if result array.length == 0. browser.tabs.query({}).then( (tabs) -> browser.tabs.query({active: true}).then(