In the code for Bootstrap collapse, in the hide()
method, I see the following line:
this.$element[dimension](this.$element[dimension]())[0].offsetHeight
I don't understand what the point of the .offsetHeight
at the end is unless it has a side effect, because it's not being assigned to anything. Does it have a side effect?