Skip to content

Commit

Permalink
Add srcsetlabel to support internal srcset assignation
Browse files Browse the repository at this point in the history
  • Loading branch information
ludostarz committed Mar 17, 2016
1 parent 6a56218 commit 397de7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion owl.lazy.srcset.js
Expand Up @@ -80,7 +80,7 @@
$item.data('owl-item').loaded = true;
if ($el.is('img')) {
$el.attr('src', img.src);
$el.attr('srcset', $el.data("srcset"));
$el.attr(this.owl.options.srcsetLabel || 'srcset', $el.data("srcset"));
$el.removeAttr("data-srcset");
} else {
$el.css('background-image', 'url(' + img.src + ')');
Expand Down

0 comments on commit 397de7f

Please sign in to comment.