[Pkg-mozext-commits] [tabmixplus] 27/47: Cleaning

David Prévot taffit at moszumanska.debian.org
Fri Sep 26 20:57:01 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch upstream
in repository tabmixplus.

commit 62228bf6807262895bccb57d431d7e1cb0d80f40
Author: onemen <tabmix.onemen at gmail.com>
Date:   Sat Sep 20 17:33:58 2014 +0300

    Cleaning
---
 chrome/content/minit/tablib.js | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/chrome/content/minit/tablib.js b/chrome/content/minit/tablib.js
index 7524586..f6157ba 100644
--- a/chrome/content/minit/tablib.js
+++ b/chrome/content/minit/tablib.js
@@ -131,13 +131,14 @@ var tablib = {
     // so we don't have to work on the same function twice.
     Tabmix.changeCode(gBrowser, "gBrowser." + _removeTab)._replace(
       '{',
-      '{ \
-       if (aTab.hasAttribute("protected")) return;\
-       if ("clearTimeouts" in aTab) aTab.clearTimeouts();'
-    )._replace(
-      '{',
-      '{var lastTabInGroup = this.visibleTabs.length == 1;\
-       if (lastTabInGroup && Tabmix.prefs.getBoolPref("keepLastTab")) return;'
+      '{\n' +
+       '            if (aTab.hasAttribute("protected"))\n' +
+       '              return;\n' +
+       '            let lastTabInGroup = this.visibleTabs.length == 1;\n' +
+       '            if (lastTabInGroup && Tabmix.prefs.getBoolPref("keepLastTab"))\n' +
+       '              return;\n' +
+       '            if ("clearTimeouts" in aTab)\n' +
+       '              aTab.clearTimeouts();'
     )._replace(
       // fix bug in TGM when closeing last tab in a group with animation
       'if (aParams)',

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git



More information about the Pkg-mozext-commits mailing list