refactor($animate): use $animate.$$setClassImmediately to save code

Please explain what the "totally unrelated" things are?