From 08956b29b0ccf93203681a83f6ae6c5c9c28375f Mon Sep 17 00:00:00 2001 From: perry Date: Mon, 27 Apr 2015 12:40:56 -0500 Subject: [PATCH] fix(slidebox): prevent read only property error on assigning of length. Closes #3589 --- js/views/sliderView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/views/sliderView.js b/js/views/sliderView.js index d9300816086..c79e77a90da 100644 --- a/js/views/sliderView.js +++ b/js/views/sliderView.js @@ -551,7 +551,7 @@ ionic.views.Slider = ionic.views.View.inherit({ element.style.left = ''; // reset slides so no refs are held on to - slides && (slides.length = 0); + slides && (slides.length = []); // removed event listeners if (browser.addEventListener) {