| Index: chrome/browser/resources/print_preview/common/overlay.js
|
| diff --git a/chrome/browser/resources/print_preview/common/overlay.js b/chrome/browser/resources/print_preview/common/overlay.js
|
| index e5f58fadc919e63a5d385d269ce1c9669e799c6b..f4290e7c5d5573d98b5fe281216dd42022ec37ad 100644
|
| --- a/chrome/browser/resources/print_preview/common/overlay.js
|
| +++ b/chrome/browser/resources/print_preview/common/overlay.js
|
| @@ -47,7 +47,8 @@ cr.define('print_preview', function() {
|
| this.cancel();
|
| } else if (e.keyCode == 13) {
|
| var activeElementTag = document.activeElement ?
|
| - document.activeElement.tagName.toUpperCase() : '';
|
| + document.activeElement.tagName.toUpperCase() :
|
| + '';
|
| if (activeElementTag != 'BUTTON' && activeElementTag != 'SELECT') {
|
| if (this.onEnterPressedInternal()) {
|
| e.stopPropagation();
|
| @@ -59,15 +60,13 @@ cr.define('print_preview', function() {
|
| }.bind(this));
|
|
|
| this.tracker.add(
|
| - this.getChildElement('.page > .close-button'),
|
| - 'click',
|
| + this.getChildElement('.page > .close-button'), 'click',
|
| this.cancel.bind(this));
|
|
|
| this.tracker.add(
|
| this.getElement(), 'click', this.onOverlayClick_.bind(this));
|
| this.tracker.add(
|
| - this.getChildElement('.page'),
|
| - 'webkitAnimationEnd',
|
| + this.getChildElement('.page'), 'webkitAnimationEnd',
|
| this.onAnimationEnd_.bind(this));
|
| },
|
|
|
| @@ -136,7 +135,5 @@ cr.define('print_preview', function() {
|
| };
|
|
|
| // Export
|
| - return {
|
| - Overlay: Overlay
|
| - };
|
| + return {Overlay: Overlay};
|
| });
|
|
|