Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
feat(transition): deprecate transition module
Browse files Browse the repository at this point in the history
Closes #3497
  • Loading branch information
chrisirhc authored and wesleycho committed Apr 6, 2015
1 parent d0cc728 commit 8a55244
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/transition/transition.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
angular.module('ui.bootstrap.transition', [])

.value('$transitionSuppressDeprecated', false)
/**
* $transition service provides a consistent interface to trigger CSS 3 transitions and to be informed when they complete.
* @param {DOMElement} element The DOMElement that will be animated.
Expand All @@ -9,7 +10,13 @@ angular.module('ui.bootstrap.transition', [])
* - As a function, it represents a function to be called that will cause the transition to occur.
* @return {Promise} A promise that is resolved when the transition finishes.
*/
.factory('$transition', ['$q', '$timeout', '$rootScope', function($q, $timeout, $rootScope) {
.factory('$transition', [
'$q', '$timeout', '$rootScope', '$log', '$transitionSuppressDeprecated',
function($q , $timeout , $rootScope , $log , $transitionSuppressDeprecated) {

if (!$transitionSuppressDeprecated) {
$log.warn('$transition is now deprecated. Use $animate from ngAnimate instead.');
}

var $transition = function(element, trigger, options) {
options = options || {};
Expand Down

0 comments on commit 8a55244

Please sign in to comment.