From 8ed0d5b6aa2e29ebc8d2026cb04380ed3343baef Mon Sep 17 00:00:00 2001 From: Matias Niemelä Date: Tue, 23 Jul 2013 23:02:15 -0400 Subject: chore($animate): replace show/hide with addClass/removeClass --- docs/component-spec/annotationsSpec.js | 4 ++-- docs/components/angular-bootstrap/bootstrap.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'docs') diff --git a/docs/component-spec/annotationsSpec.js b/docs/component-spec/annotationsSpec.js index a17c906c..90c72918 100644 --- a/docs/component-spec/annotationsSpec.js +++ b/docs/component-spec/annotationsSpec.js @@ -74,10 +74,10 @@ describe('Docs Annotations', function() { enter : function(element, done) { $window.setTimeout(done, 1000); }, - show : function(element, done) { + removeClass : function(element, className, done) { $window.setTimeout(done, 500); }, - hide : function(element, done) { + addClass : function(element, className, done) { $window.setTimeout(done, 200); } } diff --git a/docs/components/angular-bootstrap/bootstrap.js b/docs/components/angular-bootstrap/bootstrap.js index 20a5741d..31ec763e 100644 --- a/docs/components/angular-bootstrap/bootstrap.js +++ b/docs/components/angular-bootstrap/bootstrap.js @@ -366,12 +366,12 @@ directive.foldout = ['$http', '$animate','$window', function($http, $animate, $w //avoid showing the element if the user has already closed it if(container.css('display') == 'block') { container.css('display','none'); - $animate.show(container); + $animate.addClass(container, 'ng-hide'); } }); } else { - container.hasClass('ng-hide') ? $animate.show(container) : $animate.hide(container); + container.hasClass('ng-hide') ? $animate.removeClass(container, 'ng-hide') : $animate.addClass(container, 'ng-hide'); } }); }); -- cgit v1.2.3