From 779672b730c5085d78f6d566b9e12bd2f746d677 Mon Sep 17 00:00:00 2001 From: "Bulusu, Parthasaradhi" Date: Fri, 21 Nov 2014 16:38:40 -0500 Subject: [PATCH] I have
refinement.children[0].name is considered a string not a number and hence scope.modelMin = parseFloat((((proposal * range) / 100) + (scope.min)).toFixed(scope.decimalPlaces); is concatinating the values "parseFloat((((proposal * range) / 100)" and "(scope.min)" instead of adding them so changed it scope.min to int before adding. --- angular.rangeSlider.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/angular.rangeSlider.js b/angular.rangeSlider.js index 25de490..3dbbee5 100644 --- a/angular.rangeSlider.js +++ b/angular.rangeSlider.js @@ -544,11 +544,11 @@ if (index === 0) { // update model as we slide - scope.modelMin = parseFloat((((proposal * range) / 100) + scope.min)).toFixed(scope.decimalPlaces); + scope.modelMin = parseFloat((((proposal * range) / 100) + parseInt(scope.min))).toFixed(scope.decimalPlaces); } else if (index === 1) { - scope.modelMax = parseFloat((((proposal * range) / 100) + scope.min)).toFixed(scope.decimalPlaces); + scope.modelMax = parseFloat((((proposal * range) / 100) + parseInt(scope.min))).toFixed(scope.decimalPlaces); } // update angular