Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: include.postload.js

Issue 6194342989398016: Issue 2298 - Fixed: "Block element" from context menu doesn't reset previous state (Closed)
Patch Set: Cleanup lastRightClickEvent Created April 10, 2015, 11:32 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include.postload.js
===================================================================
--- a/include.postload.js
+++ b/include.postload.js
@@ -697,11 +697,12 @@
case "clickhide-new-filter":
if(lastRightClickEvent)
{
- getBlockableElementOrAncestor(lastRightClickEvent.target, function(element)
+ var event = lastRightClickEvent;
+ getBlockableElementOrAncestor(event.target, function(element)
{
- clickHide_activated = true;
+ clickHide_activate();
currentElement = element;
- clickHide_mouseClick(lastRightClickEvent);
+ clickHide_mouseClick(event);
});
}
break;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld