| 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 ec967796e4157971e2432f6b575ac13862dd2998..3f857aff09a39264540c339a1f1273ffe84eda73 100644
|
| --- a/ui/webui/resources/js/cr/ui/command.js
|
| +++ b/ui/webui/resources/js/cr/ui/command.js
|
| @@ -108,8 +108,8 @@ cr.define('cr.ui', function() {
|
| * @param {Node=} opt_node Node for which to actuate command state.
|
| */
|
| canExecuteChange: function(opt_node) {
|
| - dispatchCanExecuteEvent(this,
|
| - opt_node || this.ownerDocument.activeElement);
|
| + dispatchCanExecuteEvent(
|
| + this, opt_node || this.ownerDocument.activeElement);
|
| },
|
|
|
| /**
|
| @@ -129,9 +129,7 @@ cr.define('cr.ui', function() {
|
| * @type {string}
|
| */
|
| shortcut_: '',
|
| - get shortcut() {
|
| - return this.shortcut_;
|
| - },
|
| + get shortcut() { return this.shortcut_; },
|
| set shortcut(shortcut) {
|
| var oldShortcut = this.shortcut_;
|
| if (shortcut !== oldShortcut) {
|
| @@ -141,8 +139,8 @@ cr.define('cr.ui', function() {
|
|
|
| // Set this after the keyboardShortcuts_ since that might throw.
|
| this.shortcut_ = shortcut;
|
| - cr.dispatchPropertyChange(this, 'shortcut', this.shortcut_,
|
| - oldShortcut);
|
| + cr.dispatchPropertyChange(
|
| + this, 'shortcut', this.shortcut_, oldShortcut);
|
| }
|
| },
|
|
|
| @@ -312,9 +310,7 @@ cr.define('cr.ui', function() {
|
| * @type {boolean}
|
| */
|
| canExecute_: false,
|
| - get canExecute() {
|
| - return this.canExecute_;
|
| - },
|
| + get canExecute() { return this.canExecute_; },
|
| set canExecute(canExecute) {
|
| this.canExecute_ = !!canExecute;
|
| this.stopPropagation();
|
| @@ -323,8 +319,5 @@ cr.define('cr.ui', function() {
|
| };
|
|
|
| // Export
|
| - return {
|
| - Command: Command,
|
| - CanExecuteEvent: CanExecuteEvent
|
| - };
|
| + return {Command: Command, CanExecuteEvent: CanExecuteEvent};
|
| });
|
|
|