From 2e6de05f806dc8a73458f3ef22d6dc9bcbe680e2 Mon Sep 17 00:00:00 2001 From: YUKI Hiroshi Date: Tue, 6 Sep 2016 15:37:36 +0900 Subject: [PATCH] Update codes for latest TMP --- content/treestyletab/windowHelperHacks.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/content/treestyletab/windowHelperHacks.js b/content/treestyletab/windowHelperHacks.js index f466e76f..2b06bcea 100644 --- a/content/treestyletab/windowHelperHacks.js +++ b/content/treestyletab/windowHelperHacks.js @@ -152,12 +152,11 @@ TreeStyleTabWindowHelper.overrideExtensionsAfterBrowserInit = function TSTWH_ove if ( TreeStyleTabUtils.getTreePref('compatibility.TMP') && 'TabmixTabbar' in window && - !DNDObserver.__treestyletab__clearDragmark + !TMP_tabDNDObserver.__treestyletab__clearDragmark ) { - let DNDObserver = 'TMP_tabDNDObserver' in window ? TMP_tabDNDObserver : TabDNDObserver ; - this.updateTabDNDObserver(DNDObserver); - DNDObserver.__treestyletab__clearDragmark = DNDObserver.clearDragmark; - DNDObserver.clearDragmark = function(...aArgs) { + this.updateTabDNDObserver(TMP_tabDNDObserver); + TMP_tabDNDObserver.__treestyletab__clearDragmark = TMP_tabDNDObserver.clearDragmark; + TMP_tabDNDObserver.clearDragmark = function(...aArgs) { var result = this.__treestyletab__clearDragmark(...aArgs); gBrowser.treeStyleTab.tabbarDNDObserver.clearDropPosition(); return result;