]> 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:30:06 +0000 (11:30 -0500)
src/attributes/prop.js

index 237e4130f72419b1d4291e3f26a054405059de9c..af3be36d034d8ada4f410e159f6485490e711583 100644 (file)
@@ -100,7 +100,7 @@ if ( !support.optSelected ) {
                        if ( parent ) {
                                parent.selectedIndex;
 
-                               if ( parent && parent.parentNode ) {
+                               if ( parent.parentNode ) {
                                        parent.parentNode.selectedIndex;
                                }
                        }