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

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

Issue 566063002: Compile chrome://settings, part 8: the final battle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@H_options_errors_6
Patch Set: Created 6 years, 3 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
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(

Powered by Google App Engine
This is Rietveld 408576698