Chromium Code Reviews| Index: ui/webui/resources/js/cr/ui/focus_row.js |
| diff --git a/ui/webui/resources/js/cr/ui/focus_row.js b/ui/webui/resources/js/cr/ui/focus_row.js |
| index d259d0aaea6261e5843451a149fa02df1e9dff32..b989f538f80d338d267082661389e03217fed0cd 100644 |
| --- a/ui/webui/resources/js/cr/ui/focus_row.js |
| +++ b/ui/webui/resources/js/cr/ui/focus_row.js |
| @@ -144,7 +144,7 @@ cr.define('cr.ui', function() { |
| * @private |
| */ |
| onFocusin_: function(e) { |
| - if (this.boundary_.contains(e.target)) |
| + if (this.boundary_.contains(assertInstanceof(e.target, Node))) |
|
Tyler Breisacher (Chromium)
2014/10/31 22:24:03
That's kinda ugly :( Is it because the target is t
Dan Beam
2014/10/31 23:27:32
e.target is EventTarget, .contains() accepts Node
|
| this.activeIndex = this.items.indexOf(e.target); |
| }, |