Index: include.postload.js |
=================================================================== |
--- a/include.postload.js |
+++ b/include.postload.js |
@@ -707,10 +707,17 @@ |
case "clickhide-close": |
if (currentElement && msg.remove) |
{ |
- // Explicitly get rid of currentElement |
- var element = currentElement.prisoner || currentElement; |
- if (element && element.parentNode) |
- element.parentNode.removeChild(element); |
+ // Hide the selected element itself if an added blocking |
+ // filter is causing it to collapse. Note that this |
+ // behavior is incomplete, but the best we can do here, |
+ // e.g. if an added blocking filter matches other elements, |
+ // the effect won't be visible until the page is is reloaded. |
+ checkCollapse(currentElement.prisoner || currentElement); |
+ |
+ // Apply added element hiding filters. |
+ var selectors = msg.selectors; |
+ if (selectors.length > 0) |
+ hideElements(selectors); |
} |
clickHide_deactivate(); |
break; |