code: function onEnd() {
            element.off(css3AnimationEvents, onAnimationProgress);
            $$jqLite.removeClass(element, activeClassName);
            $$jqLite.removeClass(element, pendingClassName);
            if (staggerTimeout) {
              $timeout.cancel(staggerTimeout);
            }
            animateClose(element, className);
            var node = extractElementNode(element);
            for (var i in appliedStyles) {
              node.style.removeProperty(appliedStyles[i]);
            }
          }
docs: This will automatically be called by $animate so there is no need to attach this internally to the timeout done method.