File tree 1 file changed +7
-13
lines changed 1 file changed +7
-13
lines changed Original file line number Diff line number Diff line change 57
57
} ;
58
58
59
59
Cycler . prototype . _set_current_cycle = function ( num ) {
60
- this . elements . current_index = num ;
60
+ this . elements . current_index = parseInt ( num ) ;
61
61
this . elements . cycles . removeClass ( 'current-cycle' ) ;
62
62
this . elements . cycles . hide ( ) ;
63
63
$ ( this . elements . cycles [ num ] ) . show ( this . settings . delay , this . settings . transition ) . addClass ( 'current-cycle' ) ;
93
93
}
94
94
} ;
95
95
96
- Cycler . prototype . begin = function ( ) {
97
- if ( this . elements . current_index !== 0 ) {
98
- this . _set_current_cycle ( 0 ) ;
99
- this . callback_if_necessary ( ) ;
100
- }
96
+ Cycler . prototype . end = function ( ) {
97
+ this . _set_current_cycle ( 0 ) ;
98
+ this . callback_if_necessary ( ) ;
101
99
} ;
102
100
103
- Cycler . prototype . end = function ( ) {
104
- if ( this . elements . current_index !== ( this . elements . max - 1 ) ) {
105
- this . _set_current_cycle ( this . elements . max - 1 ) ;
106
- this . callback_if_necessary ( ) ;
107
- }
101
+ Cycler . prototype . begin = function ( ) {
102
+ this . _set_current_cycle ( this . elements . max - 1 ) ;
103
+ this . callback_if_necessary ( ) ;
108
104
} ;
109
105
110
106
return new Cycler ( this , options ) ;
111
107
}
112
108
} ) ;
113
109
} ) ( jQuery ) ;
114
110
115
-
116
-
You can’t perform that action at this time.
0 commit comments