MCPcopy Create free account
hub / github.com/denimgroup/threadfix / getImageIndex

Function getImageIndex

threadfix-main/src/main/webapp/scripts/jspdf.debug.js:2049–2064  ·  view source on GitHub ↗
(images)

Source from the content-addressed store, hash-verified

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 }

Callers 1

jspdf.debug.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected