File tree 1 file changed +2
-15
lines changed
1 file changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -22,27 +22,14 @@ angular.module('ui.bootstrap-slider', [])
22
22
initSlider ( ) ;
23
23
24
24
function initSlider ( ) {
25
-
26
- if ( attrs . ngChange ) {
27
- ngModelCtrl . $viewChangeListeners . push ( function ( ) {
28
- $scope . $apply ( attrs . ngChange ) ;
29
- } ) ;
30
- }
31
-
32
- $ . fn . slider . Constructor . prototype . disable = function ( ) {
25
+ $ . fn . slider . constructor . prototype . disable = function ( ) {
33
26
this . picker . off ( ) ;
34
27
} ;
35
28
36
- $ . fn . slider . Constructor . prototype . enable = function ( ) {
29
+ $ . fn . slider . constructor . prototype . enable = function ( ) {
37
30
this . picker . on ( ) ;
38
31
} ;
39
32
40
- if ( attrs . ngChange ) {
41
- ngModelCtrl . $viewChangeListeners . push ( function ( ) {
42
- $scope . $apply ( attrs . ngChange ) ;
43
- } ) ;
44
- }
45
-
46
33
var options = { } ;
47
34
if ( $scope . sliderid ) options . id = $scope . sliderid ;
48
35
if ( $scope . min ) options . min = parseFloat ( $scope . min ) ;
You can’t perform that action at this time.
0 commit comments