From 0b0e92b9b9d4ccf8fb3153139ce27acb1ecd2b65 Mon Sep 17 00:00:00 2001 From: laurentClave Date: Thu, 8 Jan 2015 15:08:08 +0100 Subject: [PATCH] Update slider.js Add ng-change attribute --- slider.js | 1 + 1 file changed, 1 insertion(+) diff --git a/slider.js b/slider.js index dbab9b9..aa70f58 100644 --- a/slider.js +++ b/slider.js @@ -230,6 +230,7 @@ return scope.$apply(); }; onMove = function(event) { + scope.$parent.$eval(attributes.ngChange); var eventX, newOffset, newPercent, newValue, _ref2, _ref3; eventX = event.clientX || ((_ref2 = event.touches) != null ? (_ref3 = _ref2[0]) != null ? _ref3.clientX : void 0 : void 0) || 0; newOffset = eventX - element[0].getBoundingClientRect().left - handleHalfWidth;