Skip to content

Commit babdbad

Browse files
committed
Bug Fix: Tag names are uppercase
1 parent cb69785 commit babdbad

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

jquery.cacheImages.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
var $this = $(img),
4646
src;
4747

48-
if( $this.prop("tagName") === 'img' ){
48+
if( $this.prop("tagName") === 'IMG' ){
4949
$this.data('cachedImageType', 'src');
5050

5151
var src = $this.prop('src') || $this.data('cachedImageSrc');
@@ -144,7 +144,6 @@
144144
$.fn.cacheImages.set( thisElem, key, newSrc, function( key, encodedString ){
145145
// Default processing of the response
146146
if( encodedString.length !== 0 && encodedString !== 'data:image/' + imgType + ';base64,'){ // it appended image data
147-
console.log( this, this.data('cachedImageType'), newSrc );
148147
if( this.data('cachedImageType') == 'src' ){
149148
this.prop('src', encodedString );
150149
}else{

jquery.cacheImages.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)