mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 18:51:28 +00:00
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:
parent
0f29a26897
commit
f263f2664c
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user