feat($ionicSlideBoxDelegate): add start() to resume after stop

Closes #1584
This commit is contained in:
Andrew Joslin
2014-06-12 09:02:35 -06:00
parent a7b8cfa947
commit e4ab045e30
2 changed files with 10 additions and 0 deletions

View File

@@ -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

View File

@@ -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;