Skip to content

Commit

Permalink
Disable upstream hierarchy traversal to determine width
Browse files Browse the repository at this point in the history
  • Loading branch information
holtkamp committed Nov 12, 2015
1 parent f2e053c commit e002cb0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions js/jquery.cloudinary.js
Original file line number Diff line number Diff line change
Expand Up @@ -3183,11 +3183,7 @@
responsive = Util.hasClass(this, 'cld-responsive') && src.match(/\bw_auto\b/);
if (responsive) {
container = this.parentNode;
containerWidth = 0;
while (container && containerWidth === 0) {
containerWidth = container.clientWidth || 0;
container = container.parentNode;
}
containerWidth = container.clientWidth || 0;
if (containerWidth === 0) {
return;
}
Expand Down

0 comments on commit e002cb0

Please sign in to comment.