Skip to content

Commit 119a246

Browse files
committed
Removing senseless .toString(10) calls
1 parent 5dd397b commit 119a246

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

jspdf.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ var jsPDF = (function(global) {
556556
bch = ch >> 8; // divide by 256
557557
if (bch >> 8) {
558558
/* something left after dividing by 256 second time */
559-
throw new Error("Character at position " + i.toString(10) + " of string '"
559+
throw new Error("Character at position " + i + " of string '"
560560
+ text + "' exceeds 16bits. Cannot be encoded into UCS-2 BE");
561561
}
562562
newtext.push(bch);
@@ -624,10 +624,10 @@ var jsPDF = (function(global) {
624624
out(drawColor);
625625
// resurrecting non-default line caps, joins
626626
if (lineCapID !== 0) {
627-
out(lineCapID.toString(10) + ' J');
627+
out(lineCapID + ' J');
628628
}
629629
if (lineJoinID !== 0) {
630-
out(lineJoinID.toString(10) + ' j');
630+
out(lineJoinID + ' j');
631631
}
632632
events.publish('addPage', { pageNumber : page });
633633
},
@@ -1576,7 +1576,7 @@ var jsPDF = (function(global) {
15761576
throw new Error("Line cap style of '" + style + "' is not recognized. See or extend .CapJoinStyles property for valid styles");
15771577
}
15781578
lineCapID = id;
1579-
out(id.toString(10) + ' J');
1579+
out(id + ' J');
15801580

15811581
return this;
15821582
};
@@ -1597,7 +1597,7 @@ var jsPDF = (function(global) {
15971597
throw new Error("Line join style of '" + style + "' is not recognized. See or extend .CapJoinStyles property for valid styles");
15981598
}
15991599
lineJoinID = id;
1600-
out(id.toString(10) + ' j');
1600+
out(id + ' j');
16011601

16021602
return this;
16031603
};

0 commit comments

Comments
 (0)