use new signature of $animate.leave()

This pull request is intended to fix the issue described here: https://github.com/btford/angular-modal/issues/26