Skip to content
This repository was archived by the owner on Oct 5, 2019. It is now read-only.

Commit d253c60

Browse files
committed
Updating the plugin to use version 4.8 of bootstrap slider
Updating the tests to use version 4.8 of the bootstrap slider. Also fixing bug by renaming "$.fn.slider.Constructor" to "$.fn.slider.constructor"
1 parent a4b3db2 commit d253c60

File tree

5 files changed

+249
-241
lines changed

5 files changed

+249
-241
lines changed

.gitignore

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
# bower #
22
#########
3-
bower_components
3+
bower_components
4+
5+
# jetbrains #
6+
#############
7+
.idea

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"tests"
2323
],
2424
"dependencies": {
25-
"seiyria-bootstrap-slider": "~3.1.0",
25+
"seiyria-bootstrap-slider": "~v4.8",
2626
"angular": "~1.2.16"
2727
}
2828
}

slider.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ angular.module('ui.bootstrap-slider', [])
1313
ngModel: '=',
1414
range:'=',
1515
sliderid: '=',
16-
formater: '&',
16+
formatter: '&',
1717
onStartSlide: '&',
1818
onStopSlide: '&',
1919
onSlide: '&'
@@ -91,17 +91,17 @@ angular.module('ui.bootstrap-slider', [])
9191
setFloatOption('value', $scope.value, 5);
9292
}
9393

94-
if ($scope.formater) options.formater = $scope.$eval($scope.formater);
94+
if ($scope.formatter) options.formatter = $scope.$eval($scope.formatter);
9595

9696
var slider = $(element).find( ".slider-input" ).eq( 0 );
9797

9898
// check if slider jQuery plugin exists
9999
if( $.fn.slider ) {
100100
// adding methods to jQuery slider plugin prototype
101-
$.fn.slider.Constructor.prototype.disable = function () {
101+
$.fn.slider.constructor.prototype.disable = function () {
102102
this.picker.off();
103103
};
104-
$.fn.slider.Constructor.prototype.enable = function () {
104+
$.fn.slider.constructor.prototype.enable = function () {
105105
this.picker.on();
106106
};
107107

0 commit comments

Comments
 (0)