Skip to content

Commit

Permalink
Quote CSS background-image URLs.
Browse files Browse the repository at this point in the history
  • Loading branch information
pburke committed Mar 9, 2016
1 parent bbeb5b7 commit 2a9a562
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 2a9a562

Please sign in to comment.