Skip to content

Commit 7bd23fe

Browse files
Update ionic-range-slider.js
1 parent b946c95 commit 7bd23fe

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

ionic-range-slider.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ angular.module("ion.rangeslider").directive("ionRangeSlider", [
2525
from: "=",
2626
to: "=",
2727
disable: "=",
28-
onChange: "&",
28+
onChange: "&onChange",
2929
onFinish: "&"
3030
},
3131
replace: true,
@@ -47,9 +47,11 @@ angular.module("ion.rangeslider").directive("ionRangeSlider", [
4747
from: $scope.from,
4848
to: $scope.to,
4949
disable: $scope.disable,
50-
onChange: function () {
51-
console.log("changed", arguments);
52-
$scope.onChange && $scope.onChange();
50+
onChange: function (a) {
51+
console.log("changed", a);
52+
$scope.onChange && $scope.onChange({
53+
a: a
54+
});
5355
},
5456
onFinish: $scope.onFinish
5557
});

0 commit comments

Comments
 (0)