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