Skip to content

Commit

Permalink
Merge pull request #44 from pburke/master
Browse files Browse the repository at this point in the history
Quote CSS background-image URLs
  • Loading branch information
dkern committed Mar 22, 2016
2 parents bbeb5b7 + 2a9a562 commit 6d2acdb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jquery.lazy.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@

// set image back to element
if( tag == "img" ) element.attr("src", imageObj.attr("src"));
else element.css("background-image", "url(" + imageObj.attr("src") + ")");
else element.css("background-image", "url('" + imageObj.attr("src") + "')");

// bring it back with some effect!
element[configuration("effect")](configuration("effectTime"));
Expand Down
2 changes: 1 addition & 1 deletion jquery.lazy.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6d2acdb

Please sign in to comment.