Skip to content

Commit

Permalink
Merge pull request sebarmeli#42 from eallegretta/master
Browse files Browse the repository at this point in the history
 The call to getAttribute fails if the image is not a jquery object, changed in favor of $.attr
  • Loading branch information
sebarmeli committed Jun 1, 2013
2 parents b6bdb16 + b5a9a49 commit 27fcf39
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 27fcf39

Please sign in to comment.