Bug 477694 - useless dragover attribute set by newTabButtonObserver and newWindowButtonObserver. r=gavin

This commit is contained in:
Dão Gottwald 2009-02-11 11:24:59 +01:00
parent 5564ffb17a
commit ddf907fa75

View File

@ -2689,13 +2689,11 @@ var newTabButtonObserver = {
onDragOver: function(aEvent, aFlavour, aDragSession) {
var statusTextFld = document.getElementById("statusbar-display");
statusTextFld.label = gNavigatorBundle.getString("droponnewtabbutton");
aEvent.target.setAttribute("dragover", "true");
return true;
},
onDragExit: function (aEvent, aDragSession) {
var statusTextFld = document.getElementById("statusbar-display");
statusTextFld.label = "";
aEvent.target.removeAttribute("dragover");
},
onDrop: function (aEvent, aXferData, aDragSession) {
var xferData = aXferData.data.split("\n");
@ -2722,14 +2720,12 @@ var newWindowButtonObserver = {
{
var statusTextFld = document.getElementById("statusbar-display");
statusTextFld.label = gNavigatorBundle.getString("droponnewwindowbutton");
aEvent.target.setAttribute("dragover", "true");
return true;
},
onDragExit: function (aEvent, aDragSession)
{
var statusTextFld = document.getElementById("statusbar-display");
statusTextFld.label = "";
aEvent.target.removeAttribute("dragover");
},
onDrop: function (aEvent, aXferData, aDragSession)
{