Bug 237437 Fix JS strict warning: anonymous function does not always return a value p=gautheri@noos.fr r=me sr=mscott a=mkaply

This commit is contained in:
neil%parkwaycc.co.uk 2004-04-07 15:44:47 +00:00
Родитель ac29bc1060
Коммит a983c63b3c
1 изменённых файлов: 3 добавлений и 7 удалений

Просмотреть файл

@ -88,11 +88,8 @@ var abDirTreeObserver = {
// check if we can write to the target directory
// LDAP is readonly
var targetDirectory = GetDirectoryFromURI(targetURI);
if (!targetDirectory.isMailList &&
(!(targetDirectory.operations & targetDirectory.opWrite)))
return false;
return true;
return (targetDirectory.isMailList ||
(targetDirectory.operations & targetDirectory.opWrite));
},
canDropBeforeAfter: function(index, before)
@ -103,7 +100,7 @@ var abDirTreeObserver = {
{
var dragSession = dragService.getCurrentSession();
if (!dragSession)
return false;
return;
var trans = Components.classes["@mozilla.org/widget/transferable;1"].createInstance(Components.interfaces.nsITransferable);
trans.addDataFlavor("moz/abcard");
@ -171,7 +168,6 @@ var abDirTreeObserver = {
var statusText = document.getElementById("statusText");
statusText.setAttribute("label", cardsCopiedText);
}
},
onToggleOpenState: function()