From: Timmy Willison Date: Mon, 7 Mar 2016 16:29:39 +0000 (-0500) Subject: Attributes: remove redundant parent check X-Git-Tag: 3.0.0-rc1~65 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b43a3685b60b307d61f41f0c94412380ed46ab22;p=jquery.git Attributes: remove redundant parent check --- diff --git a/src/attributes/prop.js b/src/attributes/prop.js index 237e4130f..af3be36d0 100644 --- a/src/attributes/prop.js +++ b/src/attributes/prop.js @@ -100,7 +100,7 @@ if ( !support.optSelected ) { if ( parent ) { parent.selectedIndex; - if ( parent && parent.parentNode ) { + if ( parent.parentNode ) { parent.parentNode.selectedIndex; } }