зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
ac29bc1060
Коммит
a983c63b3c
|
@ -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()
|
||||
|
|
Загрузка…
Ссылка в новой задаче