@@ -34,48 +34,48 @@ Vue.component('matestack-ui-bootstrap-carousel', {
3434 const self = this ;
3535 var myCarousel = self . $el ;
3636 self . carouselInstance = new bootstrap . Carousel ( myCarousel , {
37- interval : ( self . componentConfig [ 'interval' ] || 5000 )
37+ interval : ( self . props [ 'interval' ] || 5000 )
3838 } )
3939 } ,
4040
4141 created : function ( ) {
4242 const self = this
43- if ( self . componentConfig [ "cycle_on" ] != undefined ) {
44- var cycle_events = self . componentConfig [ "cycle_on" ] . split ( "," )
43+ if ( self . props [ "cycle_on" ] != undefined ) {
44+ var cycle_events = self . props [ "cycle_on" ] . split ( "," )
4545 cycle_events . forEach ( cycle_event => MatestackUiCore . matestackEventHub . $on ( cycle_event . trim ( ) , self . cycle ) ) ;
4646 }
47- if ( self . componentConfig [ "pause_on" ] != undefined ) {
48- var pause_events = self . componentConfig [ "pause_on" ] . split ( "," )
47+ if ( self . props [ "pause_on" ] != undefined ) {
48+ var pause_events = self . props [ "pause_on" ] . split ( "," )
4949 pause_events . forEach ( pause_event => MatestackUiCore . matestackEventHub . $on ( pause_event . trim ( ) , self . pause ) ) ;
5050 }
51- if ( self . componentConfig [ "prev_on" ] != undefined ) {
52- var prev_events = self . componentConfig [ "prev_on" ] . split ( "," )
51+ if ( self . props [ "prev_on" ] != undefined ) {
52+ var prev_events = self . props [ "prev_on" ] . split ( "," )
5353 prev_events . forEach ( prev_event => MatestackUiCore . matestackEventHub . $on ( prev_event . trim ( ) , self . prev ) ) ;
5454 }
55- if ( self . componentConfig [ "next_on" ] != undefined ) {
56- var next_events = self . componentConfig [ "next_on" ] . split ( "," )
55+ if ( self . props [ "next_on" ] != undefined ) {
56+ var next_events = self . props [ "next_on" ] . split ( "," )
5757 next_events . forEach ( next_event => MatestackUiCore . matestackEventHub . $on ( next_event . trim ( ) , self . next ) ) ;
5858 }
5959 } ,
6060
6161 beforeDestroy : function ( ) {
6262 const self = this
63- if ( self . componentConfig [ "cycle_on" ] != undefined ) {
64- var cycle_events = self . componentConfig [ "cycle_on" ] . split ( "," )
63+ if ( self . props [ "cycle_on" ] != undefined ) {
64+ var cycle_events = self . props [ "cycle_on" ] . split ( "," )
6565 cycle_events . forEach ( cycle_event => MatestackUiCore . matestackEventHub . $off ( cycle_event . trim ( ) , self . cycle ) ) ;
6666 }
6767
68- if ( self . componentConfig [ "pause_on" ] != undefined ) {
69- var pause_events = self . componentConfig [ "pause_on" ] . split ( "," )
68+ if ( self . props [ "pause_on" ] != undefined ) {
69+ var pause_events = self . props [ "pause_on" ] . split ( "," )
7070 pause_events . forEach ( pause_event => MatestackUiCore . matestackEventHub . $off ( pause_event . trim ( ) , self . pause ) ) ;
7171 }
7272
73- if ( self . componentConfig [ "prev_on" ] != undefined ) {
74- var prev_events = self . componentConfig [ "prev_on" ] . split ( "," )
73+ if ( self . props [ "prev_on" ] != undefined ) {
74+ var prev_events = self . props [ "prev_on" ] . split ( "," )
7575 prev_events . forEach ( prev_event => MatestackUiCore . matestackEventHub . $off ( prev_event . trim ( ) , self . prev ) ) ;
7676 }
77- if ( self . componentConfig [ "next_on" ] != undefined ) {
78- var next_events = self . componentConfig [ "next_on" ] . split ( "," )
77+ if ( self . props [ "next_on" ] != undefined ) {
78+ var next_events = self . props [ "next_on" ] . split ( "," )
7979 next_events . forEach ( next_event => MatestackUiCore . matestackEventHub . $off ( next_event . trim ( ) , self . next ) ) ;
8080 }
8181 } ,
0 commit comments