@@ -45,7 +45,7 @@ html2canvas.Preload = function(element, opts){
4545 }
4646
4747 function start ( ) {
48- html2canvas . log ( "html2canvas: start: images: " + images . numLoaded + " / " + images . numTotal + " (failed: " + images . numFailed + ")" ) ;
48+ h2clog ( "html2canvas: start: images: " + images . numLoaded + " / " + images . numTotal + " (failed: " + images . numFailed + ")" ) ;
4949 if ( ! images . firstRun && images . numLoaded >= images . numTotal ) {
5050
5151 /*
@@ -57,7 +57,7 @@ html2canvas.Preload = function(element, opts){
5757 options . complete ( images ) ;
5858 }
5959
60- html2canvas . log ( "Finished loading images: # " + images . numTotal + " (failed: " + images . numFailed + ")" ) ;
60+ h2clog ( "Finished loading images: # " + images . numTotal + " (failed: " + images . numFailed + ")" ) ;
6161 }
6262 }
6363
@@ -169,7 +169,7 @@ html2canvas.Preload = function(element, opts){
169169 elNodeType = el . nodeType ;
170170 } catch ( ex ) {
171171 elNodeType = false ;
172- html2canvas . log ( "html2canvas: failed to access some element's nodeType - Exception: " + ex . message ) ;
172+ h2clog ( "html2canvas: failed to access some element's nodeType - Exception: " + ex . message ) ;
173173 }
174174
175175 if ( elNodeType === 1 || elNodeType === undefined ) {
@@ -256,9 +256,9 @@ html2canvas.Preload = function(element, opts){
256256 var img , src ;
257257 if ( ! images . cleanupDone ) {
258258 if ( cause && typeof cause === "string" ) {
259- html2canvas . log ( "html2canvas: Cleanup because: " + cause ) ;
259+ h2clog ( "html2canvas: Cleanup because: " + cause ) ;
260260 } else {
261- html2canvas . log ( "html2canvas: Cleanup after timeout: " + options . timeout + " ms." ) ;
261+ h2clog ( "html2canvas: Cleanup after timeout: " + options . timeout + " ms." ) ;
262262 }
263263
264264 for ( src in images ) {
@@ -276,7 +276,7 @@ html2canvas.Preload = function(element, opts){
276276 }
277277 images . numLoaded ++ ;
278278 images . numFailed ++ ;
279- html2canvas . log ( "html2canvas: Cleaned up failed img: '" + src + "' Steps: " + images . numLoaded + " / " + images . numTotal ) ;
279+ h2clog ( "html2canvas: Cleaned up failed img: '" + src + "' Steps: " + images . numLoaded + " / " + images . numTotal ) ;
280280 }
281281 }
282282 }
@@ -307,19 +307,19 @@ html2canvas.Preload = function(element, opts){
307307 if ( options . timeout > 0 ) {
308308 timeoutTimer = window . setTimeout ( methods . cleanupDOM , options . timeout ) ;
309309 }
310- html2canvas . log ( 'html2canvas: Preload starts: finding background-images' ) ;
310+ h2clog ( 'html2canvas: Preload starts: finding background-images' ) ;
311311 images . firstRun = true ;
312312
313313 getImages ( element ) ;
314314
315- html2canvas . log ( 'html2canvas: Preload: Finding images' ) ;
315+ h2clog ( 'html2canvas: Preload: Finding images' ) ;
316316 // load <img> images
317317 for ( i = 0 ; i < imgLen ; i += 1 ) {
318318 methods . loadImage ( domImages [ i ] . getAttribute ( "src" ) ) ;
319319 }
320320
321321 images . firstRun = false ;
322- html2canvas . log ( 'html2canvas: Preload: Done.' ) ;
322+ h2clog ( 'html2canvas: Preload: Done.' ) ;
323323 if ( images . numTotal === images . numLoaded ) {
324324 start ( ) ;
325325 }
0 commit comments