mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
feat($ionicSlideBoxDelegate): add start() to resume after stop
Closes #1584
This commit is contained in:
6
js/angular/service/slideBoxDelegate.js
vendored
6
js/angular/service/slideBoxDelegate.js
vendored
@@ -77,6 +77,12 @@ IonicModule
|
||||
* explicitly told to do so.
|
||||
*/
|
||||
'stop',
|
||||
/**
|
||||
* @ngdoc method
|
||||
* @name $ionicSlideBoxDelegate#start
|
||||
* @description Start sliding again if the slideBox was stopped.
|
||||
*/
|
||||
'start',
|
||||
/**
|
||||
* @ngdoc method
|
||||
* @name $ionicSlideBoxDelegate#currentIndex
|
||||
|
||||
@@ -506,6 +506,10 @@ ionic.views.Slider = ionic.views.View.inherit({
|
||||
stop();
|
||||
};
|
||||
|
||||
this.start = function() {
|
||||
begin();
|
||||
};
|
||||
|
||||
this.currentIndex = function() {
|
||||
// return current index position
|
||||
return index;
|
||||
|
||||
Reference in New Issue
Block a user