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

Unified Diff: chrome/browser/resources/print_preview/settings/advanced_settings/advanced_settings_item.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/advanced_settings/advanced_settings_item.js
diff --git a/chrome/browser/resources/print_preview/settings/advanced_settings/advanced_settings_item.js b/chrome/browser/resources/print_preview/settings/advanced_settings/advanced_settings_item.js
index 7e189922a228ab04151cda1be26bac09ed8d417b..63576c99814cf1902e926234031048713716c770 100644
--- a/chrome/browser/resources/print_preview/settings/advanced_settings/advanced_settings_item.js
+++ b/chrome/browser/resources/print_preview/settings/advanced_settings/advanced_settings_item.js
@@ -65,8 +65,8 @@ cr.define('print_preview', function() {
/** @override */
createDom: function() {
- this.setElementInternal(this.cloneTemplateInternal(
- 'advanced-settings-item-template'));
+ this.setElementInternal(
+ this.cloneTemplateInternal('advanced-settings-item-template'));
this.tracker_.add(
this.select_, 'change', this.onSelectChange_.bind(this));
@@ -184,8 +184,8 @@ cr.define('print_preview', function() {
for (var i = 0; i < this.select_.length && !optionMatches; i++)
optionMatches = this.select_.options[i].text.match(this.query_);
} else {
- optionMatches = (this.text_.value || this.text_.placeholder || '')
- .match(this.query_);
+ optionMatches = (this.text_.value || this.text_.placeholder ||
+ '').match(this.query_);
}
}
var matches = nameMatches || !!optionMatches;
@@ -289,8 +289,8 @@ cr.define('print_preview', function() {
if (this.capability_.type == 'TYPED_VALUE' &&
this.capability_.typed_value_cap) {
defaultValue = this.capability_.typed_value_cap.default || null;
- } else if (this.capability_.type == 'RANGE' &&
- this.capability_.range_cap) {
+ } else if (
+ this.capability_.type == 'RANGE' && this.capability_.range_cap) {
defaultValue = this.capability_.range_cap.default || null;
}
@@ -321,7 +321,5 @@ cr.define('print_preview', function() {
};
// Export
- return {
- AdvancedSettingsItem: AdvancedSettingsItem
- };
+ return {AdvancedSettingsItem: AdvancedSettingsItem};
});

Powered by Google App Engine
This is Rietveld 408576698