タブバーをウィンドウ外にドロップすると空のウィンドウが開かれてしまう問題を修正( http://piro.sakura.ne.jp/cgi-bin/bbs.cgi?2698 )
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6675 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
4452704afa
commit
b02c17cfd2
@ -533,7 +533,7 @@ var TreeStyleTabService = {
|
||||
if ('_onDragEnd' in aObserver) { // Firefox 3.5 - 3.6
|
||||
eval('aObserver._onDragEnd = '+aObserver._onDragEnd.toSource().replace(
|
||||
/([^\{\}\(\);]*this\.replaceTabWithWindow\()/,
|
||||
'if (this.treeStyleTab.isDraggingAllTabs(draggedTab)) return; $1'
|
||||
'if (this.treeStyleTab.isDraggingAllTabs(draggedTab) || this.treeStyleTab.tabbarDNDObserver.canDragTabbar(arguments[0])) return; $1'
|
||||
).replace(
|
||||
'{',
|
||||
'{ var treeStyleTab = this.treeStyleTab;'
|
||||
@ -868,7 +868,8 @@ catch(e) {
|
||||
return;
|
||||
|
||||
var draggedTab = dt.mozGetDataAt(TAB_DROP_TYPE, 0);
|
||||
if (sv.isDraggingAllTabs(draggedTab))
|
||||
if (sv.isDraggingAllTabs(draggedTab) ||
|
||||
sv.tabbarDNDObserver.canDragTabbar(aEvent))
|
||||
return;
|
||||
|
||||
b.replaceTabWithWindow(draggedTab);
|
||||
|
Loading…
Reference in New Issue
Block a user