From be34825843fe3c95dbf2c72b0d19cb9e53a01cba Mon Sep 17 00:00:00 2001 From: Andy Joslin Date: Fri, 21 Mar 2014 15:37:16 -0500 Subject: [PATCH] refactor($ionicSlideBoxController): add .update() method Closed #835 --- js/views/sliderView.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/js/views/sliderView.js b/js/views/sliderView.js index 6a1fb66574..1a9fd3e2aa 100644 --- a/js/views/sliderView.js +++ b/js/views/sliderView.js @@ -469,6 +469,16 @@ ionic.views.Slider = ionic.views.View.inherit({ } // Public API + /** + * @ngdoc method + * @name ionicSlideBox#update + * @description + * Update the slidebox (for example if using Angular with ng-repeat, + * resize it for the elements inside). + */ + this.update = function() { + setTimeout(setup); + }; this.setup = function() { setup(); };