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

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

Issue 606213002: Compile print_preview, part 6: reduce down to 48 errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@J_print_preview_5
Patch Set: vitalybuka@'s review Created 6 years, 3 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
« no previous file with comments | « chrome/browser/resources/print_preview/settings/media_size_settings.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/print_preview/settings/page_settings.js
diff --git a/chrome/browser/resources/print_preview/settings/page_settings.js b/chrome/browser/resources/print_preview/settings/page_settings.js
index f86c02dd5a1e50a102d9037d7dc7c6a64488e22d..9b2d6f22edbdcb8a526d2dba8a6d11a57b802c3f 100644
--- a/chrome/browser/resources/print_preview/settings/page_settings.js
+++ b/chrome/browser/resources/print_preview/settings/page_settings.js
@@ -101,20 +101,19 @@ cr.define('print_preview', function() {
/** @override */
enterDocument: function() {
print_preview.SettingsSection.prototype.enterDocument.call(this);
- this.tracker.add(
- this.allRadio_, 'click', this.onAllRadioClick_.bind(this));
- this.tracker.add(
- this.customRadio_, 'click', this.onCustomRadioClick_.bind(this));
- this.tracker.add(
- this.customInput_, 'blur', this.onCustomInputBlur_.bind(this));
- this.tracker.add(
- this.customInput_, 'focus', this.onCustomInputFocus_.bind(this));
- this.tracker.add(
- this.customInput_, 'keydown', this.onCustomInputKeyDown_.bind(this));
- this.tracker.add(
- this.customInput_, 'keyup', this.onCustomInputKeyUp_.bind(this));
- this.tracker.add(
- this.pageRangeTicketItem_,
+ this.tracker.add(assert(this.allRadio_), 'click',
+ this.onAllRadioClick_.bind(this));
+ this.tracker.add(assert(this.customRadio_), 'click',
+ this.onCustomRadioClick_.bind(this));
+ this.tracker.add(assert(this.customInput_), 'blur',
+ this.onCustomInputBlur_.bind(this));
+ this.tracker.add(assert(this.customInput_), 'focus',
+ this.onCustomInputFocus_.bind(this));
+ this.tracker.add(assert(this.customInput_), 'keydown',
+ this.onCustomInputKeyDown_.bind(this));
+ this.tracker.add(assert(this.customInput_), 'keyup',
+ this.onCustomInputKeyUp_.bind(this));
+ this.tracker.add(assert(this.pageRangeTicketItem_),
print_preview.ticket_items.TicketItem.EventType.CHANGE,
this.onPageRangeTicketItemChange_.bind(this));
},
« no previous file with comments | « chrome/browser/resources/print_preview/settings/media_size_settings.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698