Skip to content

Commit

Permalink
Merge pull request #292 from christopherdarling/pulls/fix-291
Browse files Browse the repository at this point in the history
FIX object-fit plugin not working with picture markup
  • Loading branch information
Alexander Farkas authored Aug 1, 2016
2 parents 698096b + 23ade18 commit 7066ead
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/object-fit/ls.object-fit.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
var hideElement = element;
var container = element.parentNode;

if(container.nodeName.toLowerCase() == 'PICTURE'){
if(container.nodeName.toUpperCase() == 'PICTURE'){
hideElement = container;
container = container.parentNode;
}
Expand Down
2 changes: 1 addition & 1 deletion plugins/object-fit/ls.object-fit.min.js

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

0 comments on commit 7066ead

Please sign in to comment.