1
1
/** @preserve
2
2
* jsPDF - PDF Document creation from JavaScript
3
- * Version 1.0.106 -git Built on 2014-04-16T20:28
4
- * CommitID 71dbc3a379
3
+ * Version 1.0.115 -git Built on 2014-04-25T11:37
4
+ * CommitID a73ecd3aa1
5
5
*
6
6
* Copyright (c) 2010-2014 James Hall, https://github.com/MrRio/jsPDF
7
7
* 2010 Aaron Spike, https://github.com/acspike
@@ -79,7 +79,8 @@ var jsPDF = (function(global) {
79
79
'legal' : [ 612 , 1008 ] ,
80
80
'junior-legal' : [ 576 , 360 ] ,
81
81
'ledger' : [ 1224 , 792 ] ,
82
- 'tabloid' : [ 792 , 1224 ]
82
+ 'tabloid' : [ 792 , 1224 ] ,
83
+ 'credit-card' : [ 153 , 243 ]
83
84
} ;
84
85
85
86
/**
@@ -1695,7 +1696,7 @@ var jsPDF = (function(global) {
1695
1696
* pdfdoc.mymethod() // <- !!!!!!
1696
1697
*/
1697
1698
jsPDF . API = { events :[ ] } ;
1698
- jsPDF . version = "1.0.106 -debug 2014-04-16T20:28:diegocr " ;
1699
+ jsPDF . version = "1.0.115 -debug 2014-04-25T11:37:jameshall " ;
1699
1700
1700
1701
if ( typeof define === 'function' ) {
1701
1702
define ( function ( ) {
@@ -8531,26 +8532,26 @@ var FlateStream = (function() {
8531
8532
return dec ;
8532
8533
} ;
8533
8534
}
8534
-
8535
- if ( ! Array . prototype . map ) {
8536
- Array . prototype . map = function ( fun /*, thisArg */ ) {
8537
- if ( this === void 0 || this === null || typeof fun !== "function" )
8535
+
8536
+ if ( ! Array . prototype . map ) {
8537
+ Array . prototype . map = function ( fun /*, thisArg */ ) {
8538
+ if ( this === void 0 || this === null || typeof fun !== "function" )
8538
8539
throw new TypeError ( ) ;
8539
-
8540
- var t = Object ( this ) , len = t . length >>> 0 , res = new Array ( len ) ;
8541
- var thisArg = arguments . length > 1 ? arguments [ 1 ] : void 0 ;
8542
- for ( var i = 0 ; i < len ; i ++ ) {
8543
- // NOTE: Absolute correctness would demand Object.defineProperty
8544
- // be used. But this method is fairly new, and failure is
8545
- // possible only if Object.prototype or Array.prototype
8546
- // has a property |i| (very unlikely), so use a less-correct
8547
- // but more portable alternative.
8548
- if ( i in t )
8549
- res [ i ] = fun . call ( thisArg , t [ i ] , i , t ) ;
8550
- }
8551
-
8552
- return res ;
8553
- } ;
8540
+
8541
+ var t = Object ( this ) , len = t . length >>> 0 , res = new Array ( len ) ;
8542
+ var thisArg = arguments . length > 1 ? arguments [ 1 ] : void 0 ;
8543
+ for ( var i = 0 ; i < len ; i ++ ) {
8544
+ // NOTE: Absolute correctness would demand Object.defineProperty
8545
+ // be used. But this method is fairly new, and failure is
8546
+ // possible only if Object.prototype or Array.prototype
8547
+ // has a property |i| (very unlikely), so use a less-correct
8548
+ // but more portable alternative.
8549
+ if ( i in t )
8550
+ res [ i ] = fun . call ( thisArg , t [ i ] , i , t ) ;
8551
+ }
8552
+
8553
+ return res ;
8554
+ } ;
8554
8555
}
8555
8556
8556
8557
if ( ! Array . prototype . forEach ) {
@@ -8567,55 +8568,55 @@ var FlateStream = (function() {
8567
8568
}
8568
8569
} ;
8569
8570
}
8570
-
8571
- if ( ! Object . keys ) {
8572
- Object . keys = ( function ( ) {
8571
+
8572
+ if ( ! Object . keys ) {
8573
+ Object . keys = ( function ( ) {
8573
8574
'use strict' ;
8574
-
8575
- var hasOwnProperty = Object . prototype . hasOwnProperty ,
8576
- hasDontEnumBug = ! ( { toString : null } ) . propertyIsEnumerable ( 'toString' ) ,
8577
- dontEnums = [ 'toString' , 'toLocaleString' , 'valueOf' , 'hasOwnProperty' ,
8578
- 'isPrototypeOf' , 'propertyIsEnumerable' , 'constructor' ] ,
8575
+
8576
+ var hasOwnProperty = Object . prototype . hasOwnProperty ,
8577
+ hasDontEnumBug = ! ( { toString : null } ) . propertyIsEnumerable ( 'toString' ) ,
8578
+ dontEnums = [ 'toString' , 'toLocaleString' , 'valueOf' , 'hasOwnProperty' ,
8579
+ 'isPrototypeOf' , 'propertyIsEnumerable' , 'constructor' ] ,
8579
8580
dontEnumsLength = dontEnums . length ;
8580
-
8581
- return function ( obj ) {
8582
- if ( typeof obj !== 'object' && ( typeof obj !== 'function' || obj === null ) ) {
8583
- throw new TypeError ( ) ;
8584
- }
8581
+
8582
+ return function ( obj ) {
8583
+ if ( typeof obj !== 'object' && ( typeof obj !== 'function' || obj === null ) ) {
8584
+ throw new TypeError ( ) ;
8585
+ }
8585
8586
var result = [ ] , prop , i ;
8586
-
8587
- for ( prop in obj ) {
8588
- if ( hasOwnProperty . call ( obj , prop ) ) {
8589
- result . push ( prop ) ;
8590
- }
8591
- }
8592
-
8593
- if ( hasDontEnumBug ) {
8594
- for ( i = 0 ; i < dontEnumsLength ; i ++ ) {
8595
- if ( hasOwnProperty . call ( obj , dontEnums [ i ] ) ) {
8596
- result . push ( dontEnums [ i ] ) ;
8597
- }
8598
- }
8587
+
8588
+ for ( prop in obj ) {
8589
+ if ( hasOwnProperty . call ( obj , prop ) ) {
8590
+ result . push ( prop ) ;
8591
+ }
8599
8592
}
8600
- return result ;
8601
- } ;
8602
- } ( ) ) ;
8593
+
8594
+ if ( hasDontEnumBug ) {
8595
+ for ( i = 0 ; i < dontEnumsLength ; i ++ ) {
8596
+ if ( hasOwnProperty . call ( obj , dontEnums [ i ] ) ) {
8597
+ result . push ( dontEnums [ i ] ) ;
8598
+ }
8599
+ }
8600
+ }
8601
+ return result ;
8602
+ } ;
8603
+ } ( ) ) ;
8603
8604
}
8604
8605
8605
- if ( ! String . prototype . trim ) {
8606
- String . prototype . trim = function ( ) {
8607
- return this . replace ( / ^ \s + | \s + $ / g, '' ) ;
8608
- } ;
8609
- }
8610
- if ( ! String . prototype . trimLeft ) {
8611
- String . prototype . trimLeft = function ( ) {
8612
- return this . replace ( / ^ \s + / g, "" ) ;
8613
- } ;
8606
+ if ( ! String . prototype . trim ) {
8607
+ String . prototype . trim = function ( ) {
8608
+ return this . replace ( / ^ \s + | \s + $ / g, '' ) ;
8609
+ } ;
8610
+ }
8611
+ if ( ! String . prototype . trimLeft ) {
8612
+ String . prototype . trimLeft = function ( ) {
8613
+ return this . replace ( / ^ \s + / g, "" ) ;
8614
+ } ;
8615
+ }
8616
+ if ( ! String . prototype . trimRight ) {
8617
+ String . prototype . trimRight = function ( ) {
8618
+ return this . replace ( / \s + $ / g, "" ) ;
8619
+ } ;
8614
8620
}
8615
- if ( ! String . prototype . trimRight ) {
8616
- String . prototype . trimRight = function ( ) {
8617
- return this . replace ( / \s + $ / g, "" ) ;
8618
- } ;
8619
- }
8620
-
8621
+
8621
8622
} ) ( self ) ;
0 commit comments