metafizzy/outlayer — pull request #28 by danofames (2014-12-01 18:10:20+00:00)
Title: Set ontransitionend handler on all properties that will transition when an item is hidden.

That the `hiddenStyle` option needs a declaration that actually hides the card is more obvious in hindsight, but it was unexpected to me that overriding `hiddenStyle` led to the items remaining visible after they were filtered by the `isotope.filter` call.

This change was an approach that fixes that behavior, and seemed to have minimal impact. It is suboptimal that the handler would execute for any properties in `hiddenStyle`.

The unexpected nature could be solved by a note in documentation.

I could also see removing the `onTransitionEnd` handler in `Item.hide`, and leave the hiding of the item up to the `hiddenStyle` option completely. Part of the confusion is that the items are hidden without any overrides to `hiddenStyle`. As default behavior, this should occur unless a specific request to prevent the hiding after the transition is done is made.