File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " cacheImages" ,
3- "version" : " 1.7 .0" ,
3+ "version" : " 1.8 .0" ,
44 "title" : " jQuery.cacheImages()" ,
55 "author" : {
66 "name" : " Fresh Vine" ,
Original file line number Diff line number Diff line change 22 * jQuery Cache Images - now saucier with indexedDB
33 * Modifies the storage approach of the CacheImages to utilize indexedDB for storage
44 *
5+ * @version 1.8.0
56 * Official jQuery plugin page:
67 * Find source on GitHub: https://github.com/FreshVine/jQuery-cache-image
78 *
Original file line number Diff line number Diff line change 66 *
77 * @author Paul Prins
88 * @link http://paulprins.net
9- * @version 1.7 .0
9+ * @version 1.8 .0
1010 * @requires jQuery v1.7 or later
1111 *
1212 * Official jQuery plugin page:
104104 this . css ( 'background-image' , 'url(' + localSrcEncoded + ')' )
105105 }
106106
107- if ( $ . fn . cacheImages . defaults . debug ) { console . log ( 'FV.cacheImage: Loaded from Cache - ' + src ) ; }
107+ if ( $ . fn . cacheImages . defaults . debug ) { console . log ( 'FV.cacheImage: Already Encoded' ) ; }
108108 self . cacheImagesConfig . done . call ( this , localSrcEncoded ) ;
109109 self . cacheImagesConfig . always . call ( this ) ;
110110 return ;
410410 //
411411 // Try to grab the default image
412412 if ( $ . fn . cacheImages . testOutput ( image , true ) == false ) {
413- console . log ( 'FV.cacheImage.Output: Failed to load image ' + url ) ;
413+ if ( $ . fn . cacheImages . defaults . debug ) { console . log ( 'FV.cacheImage.Output: Failed to load image ' + url ) ; }
414414 if ( $ . fn . cacheImages . testOutput ( $ . fn . cacheImages . defaults . defaultImage , true ) ) {
415415 image = $ . fn . cacheImages . defaults . defaultImage ; // this is an encoded string
416416 } else {
You can’t perform that action at this time.
0 commit comments