Permalink
Browse files

Attributes: remove redundant parent check

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

This comment has been minimized.

Show comment
Hide comment
@markelog

markelog Mar 12, 2016

Member

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

@markelog

markelog Mar 12, 2016

Member

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

This comment has been minimized.

Show comment
Hide comment
@mgol

mgol Mar 12, 2016

Member

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

@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.