]> source.dussan.org Git - jquery.git/commitdiff
Attributes: remove redundant parent check
authorTimmy Willison <timmywillisn@gmail.com>
Mon, 7 Mar 2016 16:29:39 +0000 (11:29 -0500)
committerTimmy Willison <timmywillisn@gmail.com>
Mon, 7 Mar 2016 16:29:39 +0000 (11:29 -0500)
src/attributes/prop.js

index 15128b8cefb4e608cdf95843e5ecb68de94a7e34..e127bb08f91ad360a6147e8b1a9e8073a8c802bb 100644 (file)
@@ -99,7 +99,7 @@ if ( !support.optSelected ) {
                        if ( parent ) {
                                parent.selectedIndex;
 
-                               if ( parent && parent.parentNode ) {
+                               if ( parent.parentNode ) {
                                        parent.parentNode.selectedIndex;
                                }
                        }