File tree 2 files changed +9
-7
lines changed
2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ IonicModule
48
48
* @ngdoc method
49
49
* @name $ionicSlideBoxDelegate#slide
50
50
* @param {number } to The index to slide to.
51
- * @param {number= } speed The number of milliseconds for the change to take.
51
+ * @param {number= } speed The number of milliseconds the change should take.
52
52
*/
53
53
'slide' ,
54
54
'select' ,
@@ -62,12 +62,14 @@ IonicModule
62
62
/**
63
63
* @ngdoc method
64
64
* @name $ionicSlideBoxDelegate#previous
65
+ * @param {number= } speed The number of milliseconds the change should take.
65
66
* @description Go to the previous slide. Wraps around if at the beginning.
66
67
*/
67
68
'previous' ,
68
69
/**
69
70
* @ngdoc method
70
71
* @name $ionicSlideBoxDelegate#next
72
+ * @param {number= } speed The number of milliseconds the change should take.
71
73
* @description Go to the next slide. Wraps around if at the end.
72
74
*/
73
75
'next' ,
Original file line number Diff line number Diff line change @@ -93,17 +93,17 @@ ionic.views.Slider = ionic.views.View.inherit({
93
93
options . slidesChanged && options . slidesChanged ( ) ;
94
94
}
95
95
96
- function prev ( ) {
96
+ function prev ( slideSpeed ) {
97
97
98
- if ( options . continuous ) slide ( index - 1 ) ;
99
- else if ( index ) slide ( index - 1 ) ;
98
+ if ( options . continuous ) slide ( index - 1 , slideSpeed ) ;
99
+ else if ( index ) slide ( index - 1 , slideSpeed ) ;
100
100
101
101
}
102
102
103
- function next ( ) {
103
+ function next ( slideSpeed ) {
104
104
105
- if ( options . continuous ) slide ( index + 1 ) ;
106
- else if ( index < slides . length - 1 ) slide ( index + 1 ) ;
105
+ if ( options . continuous ) slide ( index + 1 , slideSpeed ) ;
106
+ else if ( index < slides . length - 1 ) slide ( index + 1 , slideSpeed ) ;
107
107
108
108
}
109
109
You can’t perform that action at this time.
0 commit comments