|
30 | 30 | * | {@link ng.directive:ngInclude#animations ngInclude} | enter and leave |
|
31 | 31 | * | {@link ng.directive:ngSwitch#animations ngSwitch} | enter and leave |
|
32 | 32 | * | {@link ng.directive:ngIf#animations ngIf} | enter and leave |
|
33 |
| - * | {@link ng.directive:ngShow#animations ngShow & ngHide} | show and hide | |
34 | 33 | * | {@link ng.directive:ngShow#animations ngClass} | add and remove |
|
| 34 | + * | {@link ng.directive:ngShow#animations ngShow & ngHide} | add and remove (the ng-hide class value) | |
35 | 35 | *
|
36 | 36 | * You can find out more information about animations upon visiting each directive page.
|
37 | 37 | *
|
@@ -335,60 +335,6 @@ angular.module('ngAnimate', ['ng'])
|
335 | 335 | performAnimation('move', 'ng-move', element, null, null, done);
|
336 | 336 | },
|
337 | 337 |
|
338 |
| - /** |
339 |
| - * @ngdoc function |
340 |
| - * @name ngAnimate.$animate#show |
341 |
| - * @methodOf ngAnimate.$animate |
342 |
| - * @function |
343 |
| - * |
344 |
| - * @description |
345 |
| - * Reveals the element by removing the `ng-hide` class thus performing an animation in the process. During |
346 |
| - * this animation the CSS classes present on the element will be: |
347 |
| - * |
348 |
| - * <pre> |
349 |
| - * .ng-hide //already on the element if hidden |
350 |
| - * .ng-hide-remove |
351 |
| - * .ng-hide-remove-active |
352 |
| - * </pre> |
353 |
| - * |
354 |
| - * Once the animation is complete then all three CSS classes will be removed from the element. |
355 |
| - * The done callback, if provided, will be also fired once the animation is complete. |
356 |
| - * |
357 |
| - * @param {jQuery/jqLite element} element the element that will be rendered visible or hidden |
358 |
| - * @param {function()=} done callback function that will be called once the animation is complete |
359 |
| - */ |
360 |
| - show : function(element, done) { |
361 |
| - performAnimation('show', 'ng-hide-remove', element, null, null, function() { |
362 |
| - $delegate.show(element, done); |
363 |
| - }); |
364 |
| - }, |
365 |
| - |
366 |
| - /** |
367 |
| - * @ngdoc function |
368 |
| - * @name ngAnimate.$animate#hide |
369 |
| - * @methodOf ngAnimate.$animate |
370 |
| - * |
371 |
| - * @description |
372 |
| - * Sets the element to hidden by adding the `ng-hide` class it. However, before the class is applied |
373 |
| - * the following CSS classes will be added temporarily to trigger any animation code: |
374 |
| - * |
375 |
| - * <pre> |
376 |
| - * .ng-hide-add |
377 |
| - * .ng-hide-add-active |
378 |
| - * </pre> |
379 |
| - * |
380 |
| - * Once the animation is complete then both CSS classes will be removed and `ng-hide` will be added to the element. |
381 |
| - * The done callback, if provided, will be also fired once the animation is complete. |
382 |
| - * |
383 |
| - * @param {jQuery/jqLite element} element the element that will be rendered visible or hidden |
384 |
| - * @param {function()=} done callback function that will be called once the animation is complete |
385 |
| - */ |
386 |
| - hide : function(element, done) { |
387 |
| - performAnimation('hide', 'ng-hide-add', element, null, null, function() { |
388 |
| - $delegate.hide(element, done); |
389 |
| - }); |
390 |
| - }, |
391 |
| - |
392 | 338 | /**
|
393 | 339 | * @ngdoc function
|
394 | 340 | * @name ngAnimate.$animate#addClass
|
@@ -617,12 +563,6 @@ angular.module('ngAnimate', ['ng'])
|
617 | 563 | move : function(element, done) {
|
618 | 564 | return animate(element, 'ng-move', done);
|
619 | 565 | },
|
620 |
| - show : function(element, done) { |
621 |
| - return animate(element, 'ng-hide-remove', done); |
622 |
| - }, |
623 |
| - hide : function(element, done) { |
624 |
| - return animate(element, 'ng-hide-add', done); |
625 |
| - }, |
626 | 566 | addClass : function(element, className, done) {
|
627 | 567 | return animate(element, className, done);
|
628 | 568 | },
|
|
0 commit comments