@@ -420,77 +420,3 @@ function ($injector, $animate) {
420
420
}
421
421
} ;
422
422
} ] ) ;
423
-
424
- /* deprecated carousel below */
425
-
426
- angular . module ( 'ui.bootstrap.carousel' )
427
-
428
- . value ( '$carouselSuppressWarning' , false )
429
-
430
- . controller ( 'CarouselController' , [ '$scope' , '$element' , '$controller' , '$log' , '$carouselSuppressWarning' , function ( $scope , $element , $controller , $log , $carouselSuppressWarning ) {
431
- if ( ! $carouselSuppressWarning ) {
432
- $log . warn ( 'CarouselController is now deprecated. Use UibCarouselController instead.' ) ;
433
- }
434
-
435
- angular . extend ( this , $controller ( 'UibCarouselController' , {
436
- $scope : $scope ,
437
- $element : $element
438
- } ) ) ;
439
- } ] )
440
-
441
- . directive ( 'carousel' , [ '$log' , '$carouselSuppressWarning' , function ( $log , $carouselSuppressWarning ) {
442
- return {
443
- transclude : true ,
444
- replace : true ,
445
- controller : 'CarouselController' ,
446
- controllerAs : 'carousel' ,
447
- require : 'carousel' ,
448
- templateUrl : function ( element , attrs ) {
449
- return attrs . templateUrl || 'template/carousel/carousel.html' ;
450
- } ,
451
- scope : {
452
- interval : '=' ,
453
- noTransition : '=' ,
454
- noPause : '=' ,
455
- noWrap : '&'
456
- } ,
457
- link : function ( ) {
458
- if ( ! $carouselSuppressWarning ) {
459
- $log . warn ( 'carousel is now deprecated. Use uib-carousel instead.' ) ;
460
- }
461
- }
462
- } ;
463
- } ] )
464
-
465
- . directive ( 'slide' , [ '$log' , '$carouselSuppressWarning' , function ( $log , $carouselSuppressWarning ) {
466
- return {
467
- require : '^carousel' ,
468
- transclude : true ,
469
- replace : true ,
470
- templateUrl : function ( element , attrs ) {
471
- return attrs . templateUrl || 'template/carousel/slide.html' ;
472
- } ,
473
- scope : {
474
- active : '=?' ,
475
- actual : '=?' ,
476
- index : '=?'
477
- } ,
478
- link : function ( scope , element , attrs , carouselCtrl ) {
479
- if ( ! $carouselSuppressWarning ) {
480
- $log . warn ( 'slide is now deprecated. Use uib-slide instead.' ) ;
481
- }
482
-
483
- carouselCtrl . addSlide ( scope , element ) ;
484
- //when the scope is destroyed then remove the slide from the current slides array
485
- scope . $on ( '$destroy' , function ( ) {
486
- carouselCtrl . removeSlide ( scope ) ;
487
- } ) ;
488
-
489
- scope . $watch ( 'active' , function ( active ) {
490
- if ( active ) {
491
- carouselCtrl . select ( scope ) ;
492
- }
493
- } ) ;
494
- }
495
- } ;
496
- } ] ) ;
0 commit comments