Update codes for latest TMP

This commit is contained in:
YUKI Hiroshi 2016-09-06 15:37:36 +09:00
parent 05267c0d3f
commit 2e6de05f80

View File

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