Bug 449082 - aElt is null after customize toolbar drag and drop actions. r=enn

This commit is contained in:
Dão Gottwald
2010-03-19 08:45:11 +01:00
parent 3076606c6f
commit 7956814fc1

View File

@@ -740,14 +740,14 @@ function onToolbarDragOver(aEvent)
toolbar = toolbar.parentNode;
}
var previousDragItem = gCurrentDragOverItem;
// Make sure we are dragging over a customizable toolbar.
if (!isCustomizableToolbar(toolbar)) {
if (!toolbar || !isCustomizableToolbar(toolbar)) {
gCurrentDragOverItem = null;
return;
}
var previousDragItem = gCurrentDragOverItem;
if (dropTarget.localName == "toolbar") {
gCurrentDragOverItem = dropTarget;
} else {