]> source.dussan.org Git - jquery.git/commitdiff
CSS: simplify "defaultDisplay" module
authorOleg Gaidarenko <markelog@gmail.com>
Sun, 21 Dec 2014 20:03:38 +0000 (23:03 +0300)
committerOleg Gaidarenko <markelog@gmail.com>
Tue, 23 Dec 2014 23:46:04 +0000 (02:46 +0300)
Ref 90d7cc1d8b2ea7ac75f0eacb42439349c9c73278
Ref gh-1961

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();