From 7b7c7ba5e8581a6201bc54b85bf4e7f532b02bec Mon Sep 17 00:00:00 2001 From: Piro / SHIMODA Hiroshi Date: Sat, 28 May 2011 09:18:44 +0900 Subject: [PATCH] simplify --- modules/tabbarDNDObserver.js | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/modules/tabbarDNDObserver.js b/modules/tabbarDNDObserver.js index 72318e64..f70fb49e 100644 --- a/modules/tabbarDNDObserver.js +++ b/modules/tabbarDNDObserver.js @@ -840,15 +840,9 @@ catch(e) { onDragLeave : function TabbarDND_onDragLeave(aEvent) { - var sv = this.treeStyleTab; - var b = this.browser; - var w = this.window; + this.clearDropPosition(); - var tabbarFromEvent = sv.getTabbarFromChild(aEvent.relatedTarget); - if (!tabbarFromEvent) - this.clearDropPosition(); - - w.clearTimeout(this.mAutoExpandTimer); + this.window.clearTimeout(this.mAutoExpandTimer); this.mAutoExpandTimer = null; }, @@ -975,12 +969,7 @@ try{ } } - if (!info.target || info.target != sv.evaluateXPath( - 'child::xul:tab[@'+sv.kDROP_POSITION+']', - b.mTabContainer, - Ci.nsIDOMXPathResult.FIRST_ORDERED_NODE_TYPE - ).singleNodeValue) - this.clearDropPosition(); + this.clearDropPosition(); if ( !info.canDrop ||