| 2047 | return images; |
| 2048 | } |
| 2049 | , getImageIndex = function(images) { |
| 2050 | var imageIndex = 0; |
| 2051 | |
| 2052 | if (images){ |
| 2053 | // this is NOT the first time this method is ran on this instance of jsPDF object. |
| 2054 | imageIndex = Object.keys ? |
| 2055 | Object.keys(images).length : |
| 2056 | (function(o){ |
| 2057 | var i = 0 |
| 2058 | for (var e in o){if(o.hasOwnProperty(e)){ i++ }} |
| 2059 | return i |
| 2060 | })(images) |
| 2061 | } |
| 2062 | |
| 2063 | return imageIndex; |
| 2064 | } |
| 2065 | , notDefined = function(value) { |
| 2066 | return typeof value === 'undefined' || value === null; |
| 2067 | } |