File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -556,7 +556,7 @@ var jsPDF = (function(global) {
556
556
bch = ch >> 8 ; // divide by 256
557
557
if ( bch >> 8 ) {
558
558
/* 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 '"
560
560
+ text + "' exceeds 16bits. Cannot be encoded into UCS-2 BE" ) ;
561
561
}
562
562
newtext . push ( bch ) ;
@@ -624,10 +624,10 @@ var jsPDF = (function(global) {
624
624
out ( drawColor ) ;
625
625
// resurrecting non-default line caps, joins
626
626
if ( lineCapID !== 0 ) {
627
- out ( lineCapID . toString ( 10 ) + ' J' ) ;
627
+ out ( lineCapID + ' J' ) ;
628
628
}
629
629
if ( lineJoinID !== 0 ) {
630
- out ( lineJoinID . toString ( 10 ) + ' j' ) ;
630
+ out ( lineJoinID + ' j' ) ;
631
631
}
632
632
events . publish ( 'addPage' , { pageNumber : page } ) ;
633
633
} ,
@@ -1576,7 +1576,7 @@ var jsPDF = (function(global) {
1576
1576
throw new Error ( "Line cap style of '" + style + "' is not recognized. See or extend .CapJoinStyles property for valid styles" ) ;
1577
1577
}
1578
1578
lineCapID = id ;
1579
- out ( id . toString ( 10 ) + ' J' ) ;
1579
+ out ( id + ' J' ) ;
1580
1580
1581
1581
return this ;
1582
1582
} ;
@@ -1597,7 +1597,7 @@ var jsPDF = (function(global) {
1597
1597
throw new Error ( "Line join style of '" + style + "' is not recognized. See or extend .CapJoinStyles property for valid styles" ) ;
1598
1598
}
1599
1599
lineJoinID = id ;
1600
- out ( id . toString ( 10 ) + ' j' ) ;
1600
+ out ( id + ' j' ) ;
1601
1601
1602
1602
return this ;
1603
1603
} ;
You can’t perform that action at this time.
0 commit comments