親タブを子タブにドロップしようとした時に正しくドロップが無効化されていなかった

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6754 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2010-06-26 17:29:50 +00:00
parent 93ebd97f3e
commit 9de91c45ba

View File

@ -699,11 +699,16 @@ try{
).singleNodeValue) ).singleNodeValue)
this.clearDropPosition(); this.clearDropPosition();
if (setEffectAllowedFunc ? if (
!info.canDrop ||
(setEffectAllowedFunc ?
(setEffectAllowedFunc(aEvent) == 'none') : (setEffectAllowedFunc(aEvent) == 'none') :
!aTabBrowser.canDrop(aEvent, session) !aTabBrowser.canDrop(aEvent, session)
) )
) {
aEvent.dataTransfer.effectAllowed = "none";
return true; return true;
}
info.target.setAttribute( info.target.setAttribute(
this.kDROP_POSITION, this.kDROP_POSITION,