Index: chrome/content/ui/sidebar.js |
=================================================================== |
--- a/chrome/content/ui/sidebar.js |
+++ b/chrome/content/ui/sidebar.js |
@@ -424,32 +424,16 @@ function fillInContext(/**Event*/ e) |
E("contextOpen").setAttribute("disabled", "tooltip" in item || item.type == "ELEMHIDE"); |
E("contextFlash").setAttribute("disabled", "tooltip" in item || !(item.type in visual) || (item.filter && !item.filter.disabled && !(item.filter instanceof WhitelistFilter))); |
E("contextCopyFilter").setAttribute("disabled", !allItems.some(function(item) {return "filter" in item && item.filter})); |
return true; |
} |
/** |
- * Resets context menu data once the context menu is closed. |
- */ |
-function clearContextMenu(/**Event*/ event) |
-{ |
- if (event.eventPhase != event.AT_TARGET) |
- return; |
- |
- { |
- let menuItem = E("contextDisableOnSite"); |
- menuItem.item = item; |
- menuItem.filter = filter; |
- menuItem.domain = domain; |
- } |
-} |
- |
-/** |
* Processed mouse clicks on the item list. |
* @param {Event} event |
*/ |
function handleClick(event) |
{ |
let item = treeView.getItemAt(event.clientX, event.clientY); |
if (event.button == 0 && treeView.getColumnAt(event.clientX, event.clientY) == "state") |
{ |