From 36cf3a0b0ca8c2590cfc0291ba8830b2e6ecb1a6 Mon Sep 17 00:00:00 2001 From: acestronautical Date: Mon, 5 Feb 2024 16:55:55 -0800 Subject: [PATCH] fix small bug with pagelistdetails --- src/wacky_imposition.js | 4 ++-- src/wacky_imposition.test.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wacky_imposition.js b/src/wacky_imposition.js index 77976e8..cc21632 100644 --- a/src/wacky_imposition.js +++ b/src/wacky_imposition.js @@ -11,7 +11,7 @@ export class WackyImposition{ constructor(pages, duplex,format, isPacked) { this.duplex=duplex; this.sigconfig=[] // sig_count looks at the length of this array, sig_arrange joins them together with a ,; - this.pagelist = [[]]; + this.pagelistdetails = [[]]; this.isPacked = isPacked; console.log("Constructor sees ", pages) // for UI estimates @@ -623,4 +623,4 @@ export class WackyImposition{ rotate180(page) { page.vFlip = !page.vFlip; } -} \ No newline at end of file +} diff --git a/src/wacky_imposition.test.js b/src/wacky_imposition.test.js index 6c0396b..b53b217 100644 --- a/src/wacky_imposition.test.js +++ b/src/wacky_imposition.test.js @@ -14,7 +14,7 @@ describe('WackyImposition model', () => { const expected = { duplex: true, sigconfig: [], - pagelist: [[]], + pagelistdetails: [[]], sheets: 0, }; const actual = new WackyImposition(testPages, testDuplex, testFormat);