aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorMatias Niemelä2013-07-23 23:02:15 -0400
committerMisko Hevery2013-07-26 23:49:54 -0700
commit8ed0d5b6aa2e29ebc8d2026cb04380ed3343baef (patch)
tree2c14004d495badc36f6336a322160e9ec2c3cf5b /docs
parent81923f1e41560327f7de6e8fddfda0d2612658f3 (diff)
downloadangular.js-8ed0d5b6aa2e29ebc8d2026cb04380ed3343baef.tar.bz2
chore($animate): replace show/hide with addClass/removeClass
Diffstat (limited to 'docs')
-rw-r--r--docs/component-spec/annotationsSpec.js4
-rw-r--r--docs/components/angular-bootstrap/bootstrap.js4
2 files changed, 4 insertions, 4 deletions
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');
}
});
});