[Pkg-mozext-commits] [tabmixplus] 03/32: Add '_warnedBeforeClosing' property directly to Tabmix

David Prévot taffit at moszumanska.debian.org
Sun Feb 7 19:23:12 UTC 2016


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

taffit pushed a commit to branch master
in repository tabmixplus.

commit 20579897762089ebe5d5d524f28d46b73327c365
Author: onemen <tabmix.onemen at gmail.com>
Date:   Mon Dec 28 09:21:54 2015 +0200

    Add '_warnedBeforeClosing' property directly to Tabmix
---
 chrome/content/minit/tablib.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/chrome/content/minit/tablib.js b/chrome/content/minit/tablib.js
index d72f883..0c0a665 100644
--- a/chrome/content/minit/tablib.js
+++ b/chrome/content/minit/tablib.js
@@ -792,11 +792,11 @@ var tablib = { // eslint-disable-line
 
     Tabmix.changeCode(window, "WindowIsClosing")._replace(
       '{',
-      '{window.tabmix_warnedBeforeClosing = false;'
+      '{Tabmix._warnedBeforeClosing = false;'
     )._replace(
       'if (!closeWindow(false, warnAboutClosingWindow))',
       'var reallyClose = closeWindow(false, warnAboutClosingWindow);\
-       if (reallyClose && !window.tabmix_warnedBeforeClosing)\
+       if (reallyClose && !Tabmix._warnedBeforeClosing)\
          reallyClose = tablib.closeWindow();\
        if (!reallyClose)'
     ).toCode();
@@ -1858,7 +1858,7 @@ var tablib = { // eslint-disable-line
 
   closeWindow: function TMP_closeWindow(aCountOnlyBrowserWindows) {
     // we use this flag in WindowIsClosing
-    window.tabmix_warnedBeforeClosing = true;
+    Tabmix._warnedBeforeClosing = true;
 
     // since that some pref can changed by _onQuitRequest we catch it fisrt
     // by observe browser-lastwindow-close-requested

-- 
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