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

Unified Diff: chrome/browser/resources/print_preview/settings/settings_section_select.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/settings_section_select.js
diff --git a/chrome/browser/resources/print_preview/settings/settings_section_select.js b/chrome/browser/resources/print_preview/settings/settings_section_select.js
index 0799c94e1c0c200160bd45daf236c0bd71275e45..0a15bd52fa68640944bda071adfc8a5fdb11c19e 100644
--- a/chrome/browser/resources/print_preview/settings/settings_section_select.js
+++ b/chrome/browser/resources/print_preview/settings/settings_section_select.js
@@ -41,12 +41,12 @@ cr.define('print_preview', function() {
/** @override */
enterDocument: function() {
print_preview.SettingsSection.prototype.enterDocument.call(this);
- this.tracker.add(assert(this.select_),
- 'change',
- this.onSelectChange_.bind(this));
- this.tracker.add(this.ticketItem_,
- print_preview.ticket_items.TicketItem.EventType.CHANGE,
- this.onTicketItemChange_.bind(this));
+ this.tracker.add(
+ assert(this.select_), 'change', this.onSelectChange_.bind(this));
+ this.tracker.add(
+ this.ticketItem_,
+ print_preview.ticket_items.TicketItem.EventType.CHANGE,
+ this.onTicketItemChange_.bind(this));
},
/**
@@ -80,7 +80,7 @@ cr.define('print_preview', function() {
this.ticketItem_.capability.option.forEach(function(option, index) {
var selectOption = document.createElement('option');
selectOption.text = this.getCustomDisplayName_(option) ||
- this.getDefaultDisplayName_(option);
+ this.getDefaultDisplayName_(option);
selectOption.value = JSON.stringify(option);
select.appendChild(selectOption);
if (option.is_default)
@@ -144,7 +144,5 @@ cr.define('print_preview', function() {
};
// Export
- return {
- SettingsSectionSelect: SettingsSectionSelect
- };
+ return {SettingsSectionSelect: SettingsSectionSelect};
});
« no previous file with comments | « chrome/browser/resources/print_preview/settings/settings_section.js ('k') | chrome/browser/resources/profiler/profiler.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698