function extractElementNode(element) {
      for(var i = 0; i < element.length; i++) {
        var elm = element[i];
        if(elm.nodeType == ELEMENT_NODE) {
          return elm;
        }
      }
    }
@ngdoc object
@name ngAnimate.$animateProvider
@description

The `$animateProvider` allows developers to register JavaScript animation event handlers directly inside of a module.
When an animation is triggered, the $animate service will query the $animate service to find any animations that match
the provided name value.

Requires the {@link ngAnimate `ngAnimate`} module to be installed.

Please visit the {@link ngAnimate `ngAnimate`} module overview page learn more about how to use animations in your application.