Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Unified Diff: ui/webui/resources/js/cr/ui/bubble.js

Issue 604373006: Compile chrome://settings, part 9: yet another final battle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@K_blockers_from_bookmarks
Patch Set: describe supressions Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/jstemplate/jstemplate.js ('k') | ui/webui/resources/js/cr/ui/list.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/resources/js/cr/ui/bubble.js
diff --git a/ui/webui/resources/js/cr/ui/bubble.js b/ui/webui/resources/js/cr/ui/bubble.js
index 10d52e829f75ff0d02a1fa94320bfb99a9932210..d91c8117d74b0967deeab2d9a9c205b04ff3f479 100644
--- a/ui/webui/resources/js/cr/ui/bubble.js
+++ b/ui/webui/resources/js/cr/ui/bubble.js
@@ -494,14 +494,14 @@ cr.define('cr.ui', function() {
// left-click on the bubble's target element (allowing the target to
// handle the event and close the bubble itself).
case 'mousedown':
- if (event.button == 0 &&
- this.anchorNode_.contains(assertInstanceof(event.target, Node))) {
+ var target = assertInstanceof(event.target, Node);
+ if (event.button == 0 && this.anchorNode_.contains(target))
break;
- }
// Close the bubble when the underlying document is scrolled.
case 'mousewheel':
case 'scroll':
- if (this.contains(assertInstanceof(event.target, Node)))
+ var target = assertInstanceof(event.target, Node);
+ if (this.contains(target))
break;
// Close the bubble when the window is resized.
case 'resize':
« no previous file with comments | « third_party/jstemplate/jstemplate.js ('k') | ui/webui/resources/js/cr/ui/list.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698