Bug 241731 bookmarks sidebar creates empty contextmenu when no items are selected
r=mconnor, a=asa git-svn-id: svn://10.0.0.236/branches/AVIARY_1_0_20040515_BRANCH@161838 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -190,6 +190,11 @@ var BookmarksCommand = {
|
||||
// selection.
|
||||
createContextMenu: function (aEvent, aSelection, aDS)
|
||||
{
|
||||
if (aSelection == undefined) {
|
||||
aEvent.preventDefault();
|
||||
return;
|
||||
}
|
||||
|
||||
var popup = aEvent.target;
|
||||
// clear out the old context menu contents (if any)
|
||||
while (popup.hasChildNodes())
|
||||
|
||||
Reference in New Issue
Block a user