Permalink
Browse files

Fix reversed condition causing occasional errors

  • Loading branch information...
1 parent b26b579 commit 556421243328ee44cb1961d3d3fa1ffcce8848a0 Jason Johnston committed Mar 6, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 sources/Length.js
View
@@ -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;

0 comments on commit 5564212

Please sign in to comment.