Skip to content

Commit

Permalink
Fix reversed condition causing occasional errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Johnston committed Mar 6, 2011
1 parent b26b579 commit 5564212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/Length.js
Expand Up @@ -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;
Expand Down

0 comments on commit 5564212

Please sign in to comment.