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

Unified Diff: chrome/browser/resources/print_preview/settings/copies_settings.js

Issue 2617663002: WIP: run clang-format-js on lots of things (Closed)
Patch Set: merge Created 3 years, 11 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: chrome/browser/resources/print_preview/settings/copies_settings.js
diff --git a/chrome/browser/resources/print_preview/settings/copies_settings.js b/chrome/browser/resources/print_preview/settings/copies_settings.js
index 6ac9a998372084a9337e9b4c2cd8a7ad96cefa10..9f8e03c472f01496c8bc60402ddfff06e30f6e5f 100644
--- a/chrome/browser/resources/print_preview/settings/copies_settings.js
+++ b/chrome/browser/resources/print_preview/settings/copies_settings.js
@@ -88,20 +88,13 @@ cr.define('print_preview', function() {
this.inputField_ = this.getChildElement('input.user-value');
print_preview.SettingsSection.prototype.enterDocument.call(this);
this.tracker.add(
- this.inputField_,
- 'keydown',
- this.onTextfieldKeyDown_.bind(this));
+ this.inputField_, 'keydown', this.onTextfieldKeyDown_.bind(this));
this.tracker.add(
- this.inputField_,
- 'input',
- this.onTextfieldInput_.bind(this));
+ this.inputField_, 'input', this.onTextfieldInput_.bind(this));
this.tracker.add(
- this.inputField_,
- 'blur',
- this.onTextfieldBlur_.bind(this));
+ this.inputField_, 'blur', this.onTextfieldBlur_.bind(this));
this.tracker.add(
- this.getChildElement('input.collate'),
- 'click',
+ this.getChildElement('input.collate'), 'click',
this.onCollateCheckboxClick_.bind(this));
this.tracker.add(
this.copiesTicketItem_,
@@ -134,8 +127,8 @@ cr.define('print_preview', function() {
}
if (!(this.getChildElement('.collate-container').hidden =
- !this.collateTicketItem_.isCapabilityAvailable() ||
- !currentValueGreaterThan1)) {
+ !this.collateTicketItem_.isCapabilityAvailable() ||
+ !currentValueGreaterThan1)) {
this.getChildElement('input.collate').checked =
this.collateTicketItem_.getValue();
}
@@ -194,9 +187,11 @@ cr.define('print_preview', function() {
// No need to update the ticket, but change the display to match.
this.inputField_.value = '1';
} else {
- setTimeout((function() {
- this.copiesTicketItem_.updateValue('1');
- }).bind(this), 0);
+ setTimeout(
+ (function() {
+ this.copiesTicketItem_.updateValue('1');
+ }).bind(this),
+ 0);
}
}
},
@@ -212,7 +207,5 @@ cr.define('print_preview', function() {
};
// Export
- return {
- CopiesSettings: CopiesSettings
- };
+ return {CopiesSettings: CopiesSettings};
});

Powered by Google App Engine
This is Rietveld 408576698