Skip to content

Commit

Permalink
feat($ionicSlideBoxDelegate): add start() to resume after stop
Browse files Browse the repository at this point in the history
Closes #1584
  • Loading branch information
ajoslin committed Jun 12, 2014
1 parent a7b8cfa commit e4ab045
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js/angular/service/slideBoxDelegate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions js/views/sliderView.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e4ab045

Please sign in to comment.