| Index: chrome/browser/resources/print_preview/data/ticket_items/margins_type.js
|
| diff --git a/chrome/browser/resources/print_preview/data/ticket_items/margins_type.js b/chrome/browser/resources/print_preview/data/ticket_items/margins_type.js
|
| index 2daa9193c68e985f966fe6dd4a3b709839cd9afb..869ea116be3b02339db9f4a9ebdad2eab0b37d21 100644
|
| --- a/chrome/browser/resources/print_preview/data/ticket_items/margins_type.js
|
| +++ b/chrome/browser/resources/print_preview/data/ticket_items/margins_type.js
|
| @@ -20,11 +20,8 @@ cr.define('print_preview.ticket_items', function() {
|
| */
|
| function MarginsType(appState, documentInfo, customMargins) {
|
| print_preview.ticket_items.TicketItem.call(
|
| - this,
|
| - appState,
|
| - print_preview.AppState.Field.MARGINS_TYPE,
|
| - null /*destinationStore*/,
|
| - documentInfo);
|
| + this, appState, print_preview.AppState.Field.MARGINS_TYPE,
|
| + null /*destinationStore*/, documentInfo);
|
|
|
| /**
|
| * Custom margins ticket item, used to write when margins type changes.
|
| @@ -39,12 +36,7 @@ cr.define('print_preview.ticket_items', function() {
|
| * printing/print_job_constants.h.
|
| * @enum {number}
|
| */
|
| - MarginsType.Value = {
|
| - DEFAULT: 0,
|
| - NO_MARGINS: 1,
|
| - MINIMUM: 2,
|
| - CUSTOM: 3
|
| - };
|
| + MarginsType.Value = {DEFAULT: 0, NO_MARGINS: 1, MINIMUM: 2, CUSTOM: 3};
|
|
|
| MarginsType.prototype = {
|
| __proto__: print_preview.ticket_items.TicketItem.prototype,
|
| @@ -74,7 +66,7 @@ cr.define('print_preview.ticket_items', function() {
|
| print_preview.ticket_items.TicketItem.prototype.updateValueInternal.call(
|
| this, value);
|
| if (this.isValueEqual(
|
| - print_preview.ticket_items.MarginsType.Value.CUSTOM)) {
|
| + print_preview.ticket_items.MarginsType.Value.CUSTOM)) {
|
| // If CUSTOM, set the value of the custom margins so that it won't be
|
| // overridden by the default value.
|
| this.customMargins_.updateValue(this.customMargins_.getValue());
|
| @@ -83,7 +75,5 @@ cr.define('print_preview.ticket_items', function() {
|
| };
|
|
|
| // Export
|
| - return {
|
| - MarginsType: MarginsType
|
| - };
|
| + return {MarginsType: MarginsType};
|
| });
|
|
|