diff --git a/angular.rangeSlider.js b/angular.rangeSlider.js index b121203..ae5e132 100644 --- a/angular.rangeSlider.js +++ b/angular.rangeSlider.js @@ -271,9 +271,9 @@ function setDisabledStatus (status) { if (status) { - $slider.addClass('disabled'); + $slider.addClass('ngrs-disabled'); } else { - $slider.removeClass('disabled'); + $slider.removeClass('ngrs-disabled'); } } @@ -413,7 +413,9 @@ previousProposal = false; if (angular.isFunction(scope.onHandleDown)) { - scope.onHandleDown(); + scope.$apply(function() { + scope.onHandleDown(); + }); } // stop user accidentally selecting stuff @@ -520,7 +522,9 @@ }).bind(offEvent, function () { if (angular.isFunction(scope.onHandleUp)) { - scope.onHandleUp(); + scope.$apply(function() { + scope.onHandleUp(); + }); } unbind.off(eventNamespace); @@ -604,4 +608,4 @@ window.setTimeout(callback, 1000 / 60); }; })(); -}()); +}()); \ No newline at end of file