If you want to set your own classname for $to_expand, you have to set it twice at the moment:
In line 16 you define your var like this: $to_expand = $('.js-to_expand').
In line 28 you don’t use this var but instead you use the classname again: $to_expand = $this.next(".js-to_expand").
As expected it would be nice to define your own classname only once inside the vars at the top.
The text was updated successfully, but these errors were encountered:
If you want to set your own classname for
$to_expand
, you have to set it twice at the moment:In line 16 you define your var like this:
$to_expand = $('.js-to_expand')
.In line 28 you don’t use this var but instead you use the classname again:
$to_expand = $this.next(".js-to_expand")
.As expected it would be nice to define your own classname only once inside the vars at the top.
The text was updated successfully, but these errors were encountered: