Permalink
Browse files

Attributes: remove redundant parent check

1 parent 0402963 commit b43a3685b60b307d61f41f0c94412380ed46ab22 @timmywil timmywil committed Mar 7, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/attributes/prop.js
@@ -100,7 +100,7 @@ if ( !support.optSelected ) {
if ( parent ) {
parent.selectedIndex;
- if ( parent && parent.parentNode ) {
@markelog
markelog Mar 12, 2016 Member

How did you find this? Why it was needed previously?

@mgol
mgol Mar 12, 2016 Member

It wasn't needed, it all landed in 780cac8 with the redundant check. No biggie.

+ if ( parent.parentNode ) {
parent.parentNode.selectedIndex;
}
}

0 comments on commit b43a368

Please sign in to comment.