]> source.dussan.org Git - jquery.git/commitdiff
CSS: simplify "defaultDisplay" module
authorOleg Gaidarenko <markelog@gmail.com>
Sun, 21 Dec 2014 20:21:27 +0000 (23:21 +0300)
committerOleg Gaidarenko <markelog@gmail.com>
Tue, 23 Dec 2014 23:25:04 +0000 (02:25 +0300)
Closes gh-1962

src/css/defaultDisplay.js

index 15d440d2ff7b979f86eebe380ec1aa54d7f69844..a6f60d17e70495affd525def2f1ad169c3c2e2a5 100644 (file)
@@ -49,7 +49,7 @@ function defaultDisplay( nodeName ) {
                                .appendTo( doc.documentElement );
 
                        // Always write a new HTML skeleton so Webkit and Firefox don't choke on reuse
-                       doc = ( iframe[ 0 ].contentWindow || iframe[ 0 ].contentDocument ).document;
+                       doc = iframe[ 0 ].contentDocument;
 
                        // Support: IE
                        doc.write();