tmeasday/meteor-transitioner — pull request #6 by tomconroy (2012-12-01 09:05:54+00:00)
Title: Options for callbacks, invalidating

Adds `Transitioner.setOptions` including `before` and `after` callbacks, and a boolean `redrawAfterTransition` for whether or not it should invalidate once the transition ends.

This lets the app control things like adding extra classes, etc. Also combining `redrawAfterTransition = false` with:

```
after: ->
next = $('.next')
$('.current').removeClass('current').addClass('next')
next.removeClass('next').addClass('current')
```

Reuses the DOM elements without re-rendering their contents.