Skip to content

Commit

Permalink
The call to getAttribute fails if the image is not a jquery object, c…
Browse files Browse the repository at this point in the history
…hanged in favor of $.attr
  • Loading branch information
eallegretta committed May 31, 2013
1 parent b6bdb16 commit b5a9a49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jail.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
if(i === stack.length) {
break;
} else {
if (stack[i].getAttribute('data-src')) {
if ($(stack[i]).attr('data-src')) {
i++;
} else {
stack.splice( i, 1 );
Expand Down

0 comments on commit b5a9a49

Please sign in to comment.