code: function(value, element) {
            switch (arguments.length) {
              case 2:
                if (value) {
                  cleanup(element);
                } else {
                  var data = element.data(NG_ANIMATE_STATE) || {};
                  data.disabled = true;
                  element.data(NG_ANIMATE_STATE, data);
                }
              break;
  
              case 1:
                rootAnimateState.disabled = !value;
              break;
  
              default:
                value = !rootAnimateState.disabled;
              break;
            }
            return !!value;
           }
docs: @ngdoc method
  @name $animate#enabled
  @kind function
  
  @param {boolean=} value If provided then set the animation on or off.
  @param {DOMElement=} element If provided then the element will be used to represent the enable/disable operation
  @return {boolean} Current animation state.
  
  @description
  Globally enables/disables animations.