Skip to content

Commit 32b4088

Browse files
author
Kenneth Glassey
committed
Change pagedim from object to array
The usage of pagedim does not appear to make any use of its being an object, such as setting non-numeric properties. If we can change it to an array, it greatly simplifies _deletePage(), and doesn't break current usage.
1 parent 032c9f7 commit 32b4088

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jspdf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ var jsPDF = (function(global) {
181181
page = 0,
182182
currentPage,
183183
pages = [],
184-
pagedim = {},
184+
pagedim = [],
185185
content = [],
186186
lineCapID = 0,
187187
lineJoinID = 0,

0 commit comments

Comments
 (0)