angular/angular.js — pull request #10498 by olexme (2014-12-17 10:07:59+00:00)
Title: docs($animate): misleading $animate.cancel example

The given example is wrong, you can't cancel promise returned by "then" but you can do it for promise returned by "addClass".