Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix reversed condition causing occasional errors

  • Loading branch information...
commit 556421243328ee44cb1961d3d3fa1ffcce8848a0 1 parent b26b579
Jason Johnston authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  sources/Length.js
View
2  sources/Length.js
@@ -112,7 +112,7 @@ PIE.Length = (function() {
lengthCalcEl.style.width = '1em';
el.appendChild( lengthCalcEl );
px = lengthCalcEl.offsetWidth;
- if( lengthCalcEl.parentNode !== el ) { //not sure how this happens but it does
+ if( lengthCalcEl.parentNode === el ) { //not sure how this could be false but it sometimes is
el.removeChild( lengthCalcEl );
}
return px;
Please sign in to comment.
Something went wrong with that request. Please try again.