diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ng/animator.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ng/animator.js b/src/ng/animator.js index 7fc35f3c..2965717b 100644 --- a/src/ng/animator.js +++ b/src/ng/animator.js @@ -253,6 +253,20 @@ var $AnimatorProvider = function() { * @param {jQuery/jqLite element} element the element that will be rendered visible or hidden */ animator.hide = animateActionFactory('hide', noop, hide); + + /** + * @ngdoc function + * @name ng.animator#animate + * @methodOf ng.$animator + * + * @description + * Triggers a custom animation event to be executed on the given element + * + * @param {jQuery/jqLite element} element that will be animated + */ + animator.animate = function(event, element) { + animateActionFactory(event, noop, noop)(element); + } return animator; function animateActionFactory(type, beforeFn, afterFn) { |
