Index: ui/webui/resources/js/cr/ui/command.js |
diff --git a/ui/webui/resources/js/cr/ui/command.js b/ui/webui/resources/js/cr/ui/command.js |
index 302219cdf74ea181f6814a8e2e3f4ecf19282dca..494dc2eacda359611b99c9008a2ab6ffc6562147 100644 |
--- a/ui/webui/resources/js/cr/ui/command.js |
+++ b/ui/webui/resources/js/cr/ui/command.js |
@@ -241,7 +241,7 @@ cr.define('cr.ui', function() { |
var target = e.target; |
// Ignore focus on a menu button or command item |
- if (target.menu || target.command) |
+ if ('menu' in target || 'command' in target) |
Dan Beam
2014/09/12 23:36:12
why? so they keys aren't changed during compilatio
Vitaly Pavlenko
2014/09/13 00:02:37
.menu key is not defined on EventTarget, says the
Dan Beam
2014/09/16 01:19:10
are you sure we need to bother with this at all?
Vitaly Pavlenko
2014/09/16 03:36:55
See my answer above.
Dan Beam
2014/09/19 01:05:55
the problem with instanceof is that it doesn't wor
Vitaly Pavlenko
2014/09/19 01:36:25
So what do you think we should do with that?
Dan Beam
2014/09/23 02:19:53
this is code is funky to start with. i don't know
|
return; |
var commands = Array.prototype.slice.call( |