| 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':
|
|
|