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
it's poor practice to introduce unrelated changes like this in a PR