Closed englishextra closed 6 years ago
Please explain, 'cause jshint says it's never used
imgLoad.on( 'fail', function( instance ) { console.log('FAIL - all images loaded, at least one is broken'); });
or here:
imgLoad.on( 'progress', function( instance, image ) { var result = image.isLoaded ? 'loaded' : 'broken'; console.log( 'image is ' + result + ' for ' + image.img.src ); });
instance is the instance of imagesLoaded. It's useful when use its properties
instance
imagesLoaded
@desandro Oh yeah, it's just that I didn't make use of instance, the jshint says it's never used, thanks
Please explain, 'cause jshint says it's never used
or here: