Index: ui/file_manager/file_manager/foreground/js/ui/commandbutton.js |
diff --git a/ui/file_manager/file_manager/foreground/js/ui/commandbutton.js b/ui/file_manager/file_manager/foreground/js/ui/commandbutton.js |
index 88543c1fa4409dda86447720c90b3a59d7af8e80..27d01adcefae9bae9a1b19c95a957c45137e506c 100644 |
--- a/ui/file_manager/file_manager/foreground/js/ui/commandbutton.js |
+++ b/ui/file_manager/file_manager/foreground/js/ui/commandbutton.js |
@@ -60,7 +60,8 @@ CommandButton.prototype.setCommand = function(command) { |
/** @type {EventListener} */ (this)); |
} |
- if (typeof command == 'string' && command[0] == '#') { |
+ if (typeof command == 'string') { |
+ assert(command[0] == '#'); |
command = /** @type {!cr.ui.Command} */ |
(this.ownerDocument.getElementById(command.slice(1))); |
cr.ui.decorate(command, cr.ui.Command); |