タブバーをウィンドウ外にドロップすると空のウィンドウが開かれてしまう問題を修正( 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:
piro 2010-05-16 05:08:32 +00:00
parent 4452704afa
commit b02c17cfd2

View File

@ -533,7 +533,7 @@ var TreeStyleTabService = {
if ('_onDragEnd' in aObserver) { // Firefox 3.5 - 3.6 if ('_onDragEnd' in aObserver) { // Firefox 3.5 - 3.6
eval('aObserver._onDragEnd = '+aObserver._onDragEnd.toSource().replace( eval('aObserver._onDragEnd = '+aObserver._onDragEnd.toSource().replace(
/([^\{\}\(\);]*this\.replaceTabWithWindow\()/, /([^\{\}\(\);]*this\.replaceTabWithWindow\()/,
'if (this.treeStyleTab.isDraggingAllTabs(draggedTab)) return; $1' 'if (this.treeStyleTab.isDraggingAllTabs(draggedTab) || this.treeStyleTab.tabbarDNDObserver.canDragTabbar(arguments[0])) return; $1'
).replace( ).replace(
'{', '{',
'{ var treeStyleTab = this.treeStyleTab;' '{ var treeStyleTab = this.treeStyleTab;'
@ -868,7 +868,8 @@ catch(e) {
return; return;
var draggedTab = dt.mozGetDataAt(TAB_DROP_TYPE, 0); var draggedTab = dt.mozGetDataAt(TAB_DROP_TYPE, 0);
if (sv.isDraggingAllTabs(draggedTab)) if (sv.isDraggingAllTabs(draggedTab) ||
sv.tabbarDNDObserver.canDragTabbar(aEvent))
return; return;
b.replaceTabWithWindow(draggedTab); b.replaceTabWithWindow(draggedTab);