diff --git a/src/core/core.js b/src/core/core.js index 12b6632879d..48b82a50dd0 100644 --- a/src/core/core.js +++ b/src/core/core.js @@ -5,10 +5,10 @@ */ angular .module('material.core', [ - 'ngAnimate', // Core uses $animate - 'material.animate', // for $animateCss polyfill with Angular < 1.4 - 'material.core.gestures', // for $mdGesture - 'material.core.theming' // for $mdTheme + 'ngAnimate', + 'material.animate', + 'material.core.gestures', + 'material.core.theming' ]) .config( MdCoreConfigure ); diff --git a/src/core/util/animation/animate.js b/src/core/util/animation/animate.js index b8e2dda4601..93be841d2f0 100644 --- a/src/core/util/animation/animate.js +++ b/src/core/util/animation/animate.js @@ -1,3 +1,4 @@ +// Polyfill angular < 1.4 (provide $animateCss) angular .module('material.core') .factory('$$mdAnimate', function($q, $timeout, $mdConstant, $animateCss){