[Pkg-mozext-commits] [tabmixplus] 05/13: Folloe up bug Bug 1353542
David Prévot
taffit at moszumanska.debian.org
Sat Aug 5 15:28:28 UTC 2017
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to tag 0.5.0.4pre.170525a1
in repository tabmixplus.
commit a2d6f3c1514e018a6f9c6d79380fd87ff0f2fe9e
Author: onemen <tabmix.onemen at gmail.com>
Date: Sat May 13 18:59:34 2017 +0300
Folloe up bug Bug 1353542
---
chrome/content/minit/tablib.js | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/chrome/content/minit/tablib.js b/chrome/content/minit/tablib.js
index 8b52dd7..1e19354 100644
--- a/chrome/content/minit/tablib.js
+++ b/chrome/content/minit/tablib.js
@@ -807,10 +807,12 @@ Tabmix.tablib = {
}'
).toCode();
- Tabmix.changeCode(newWindowButtonObserver, "newWindowButtonObserver.onDrop")._replace(
- '{',
- '{if (Tabmix.singleWindowMode) return;'
- ).toCode();
+ Tabmix.originalFunctions.newWindowButtonObserver_onDrop = newWindowButtonObserver.onDrop;
+ newWindowButtonObserver.onDrop = function onDrop(...args) {
+ if (!Tabmix.singleWindowMode) {
+ Tabmix.originalFunctions.newWindowButtonObserver_onDrop.apply(this, args);
+ }
+ };
Tabmix.changeCode(window, "warnAboutClosingWindow")._replace(
'gBrowser.warnAboutClosingTabs(gBrowser.closingTabsEnum.ALL)',
--
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