Permalink
Browse files

shallower call stack

  • Loading branch information...
1 parent 41ce72d commit 7751051e0391c021434aca2b44d119e12984c0e2 @gibson042 gibson042 committed Nov 19, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/css.js
View
@@ -451,7 +451,7 @@ function css_defaultDisplay( nodeName ) {
if ( !display ) {
elem = jQuery( doc.createElement( nodeName ) );
- display = elem.appendTo( doc.body ).css("display");
+ display = curCSS( elem.appendTo( doc.body )[0], "display" );
elem.remove();
// If the simple way fails, read from inside an iframe
@@ -465,7 +465,7 @@ function css_defaultDisplay( nodeName ) {
doc.close();
elem = jQuery( doc.createElement( nodeName ) );
- display = elem.appendTo( doc.body ).css("display");
+ display = curCSS( elem.appendTo( doc.body )[0], "display" );
elem.remove();
iframe.detach();
}

0 comments on commit 7751051

Please sign in to comment.