[Pkg-mozext-commits] [tabmixplus] 56/147: Delay _animateTabMove modification until after browser-delayed-startup-finished when 'Multiple Tab Handler' installed
David Prévot
taffit at moszumanska.debian.org
Sat Aug 5 15:27:36 UTC 2017
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository tabmixplus.
commit 946224039c317976bb5ed06a6de1d6df534ab803
Author: onemen <tabmix.onemen at gmail.com>
Date: Tue Dec 6 23:14:31 2016 +0200
Delay _animateTabMove modification until after browser-delayed-startup-finished when 'Multiple Tab Handler' installed
---
chrome/content/minit/minit.js | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/chrome/content/minit/minit.js b/chrome/content/minit/minit.js
index a0a03a5..f51a793 100644
--- a/chrome/content/minit/minit.js
+++ b/chrome/content/minit/minit.js
@@ -69,7 +69,14 @@ var TMP_tabDNDObserver = {
'rtl ? $& : draggingRight && newIndex > -1'
);
if (tabsDragUtils) {
- setTimeout(() => newCode.toCode(), 0);
+ const topic = "browser-delayed-startup-finished";
+ const observer = function(subject) {
+ if (subject == window) {
+ Services.obs.removeObserver(observer, topic);
+ newCode.toCode();
+ }
+ };
+ Services.obs.addObserver(observer, topic, false);
} else {
newCode.toCode();
}
--
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