Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4747ab1

Browse files
author
Valentin Hervieu
committed
chore(dist): generate latest fist files
1 parent 683f820 commit 4747ab1

File tree

5 files changed

+40
-25
lines changed

5 files changed

+40
-25
lines changed

dist/rzslider.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*! angularjs-slider - v2.3.0 -
22
(c) Rafal Zajac <[email protected]>, Valentin Hervieu <[email protected]>, Jussi Saarivirta <[email protected]>, Angelin Sirbu <[email protected]> -
33
https://github.com/angular-slider/angularjs-slider -
4-
2015-12-23 */
4+
2015-12-24 */
55
rzslider {
66
position: relative;
77
display: inline-block;

dist/rzslider.js

Lines changed: 34 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*! angularjs-slider - v2.3.0 -
22
(c) Rafal Zajac <[email protected]>, Valentin Hervieu <[email protected]>, Jussi Saarivirta <[email protected]>, Angelin Sirbu <[email protected]> -
33
https://github.com/angular-slider/angularjs-slider -
4-
2015-12-23 */
4+
2015-12-24 */
55
/*jslint unparam: true */
66
/*global angular: false, console: false, define, module */
77
(function(root, factory) {
@@ -278,9 +278,12 @@
278278
*/
279279
init: function() {
280280
var thrLow, thrHigh,
281-
calcDimFn = angular.bind(this, this.calcViewDimensions),
282281
self = this;
283282

283+
var calcDimFn = function() {
284+
self.calcViewDimensions();
285+
};
286+
284287
this.applyOptions();
285288
this.initElemHandles();
286289
this.manageElementsStyle();
@@ -305,27 +308,12 @@
305308
this.initHasRun = true;
306309

307310
// Watch for changes to the model
308-
309311
thrLow = rzThrottle(function() {
310-
self.setMinAndMax();
311-
self.updateLowHandle(self.valueToOffset(self.scope.rzSliderModel));
312-
self.updateSelectionBar();
313-
self.updateTicksScale();
314-
self.updateAriaAttributes();
315-
316-
if (self.range) {
317-
self.updateCmbLabel();
318-
}
319-
312+
self.onLowHandleChange();
320313
}, self.options.interval);
321314

322315
thrHigh = rzThrottle(function() {
323-
self.setMinAndMax();
324-
self.updateHighHandle(self.valueToOffset(self.scope.rzSliderHigh));
325-
self.updateSelectionBar();
326-
self.updateTicksScale();
327-
self.updateCmbLabel();
328-
self.updateAriaAttributes();
316+
self.onHighHandleChange();
329317
}, self.options.interval);
330318

331319
this.scope.$on('rzSliderForceRender', function() {
@@ -373,6 +361,32 @@
373361
});
374362
},
375363

364+
/*
365+
* Reflow the slider when the low handle changes (called with throttle)
366+
*/
367+
onLowHandleChange: function() {
368+
this.setMinAndMax();
369+
this.updateLowHandle(this.valueToOffset(this.scope.rzSliderModel));
370+
this.updateSelectionBar();
371+
this.updateTicksScale();
372+
this.updateAriaAttributes();
373+
if (this.range) {
374+
this.updateCmbLabel();
375+
}
376+
},
377+
378+
/*
379+
* Reflow the slider when the high handle changes (called with throttle)
380+
*/
381+
onHighHandleChange: function() {
382+
this.setMinAndMax();
383+
this.updateHighHandle(this.valueToOffset(this.scope.rzSliderHigh));
384+
this.updateSelectionBar();
385+
this.updateTicksScale();
386+
this.updateCmbLabel();
387+
this.updateAriaAttributes();
388+
},
389+
376390
/**
377391
* Read the user options and apply them to the slider model
378392
*/
@@ -1638,7 +1652,7 @@
16381652
'use strict';
16391653

16401654
$templateCache.put('rzSliderTpl.html',
1641-
"<span class=rz-bar-wrapper><span class=rz-bar></span></span> <span class=rz-bar-wrapper><span class=\"rz-bar rz-selection\" ng-style=barStyle></span></span> <span class=rz-pointer></span> <span class=rz-pointer></span> <span class=\"rz-bubble rz-limit\"></span> <span class=\"rz-bubble rz-limit\"></span> <span class=rz-bubble></span> <span class=rz-bubble></span> <span class=rz-bubble></span><ul ng-show=showTicks class=rz-ticks><li ng-repeat=\"t in ticks track by $index\" class=tick ng-class=\"{selected: t.selected}\" ng-style=t.style ng-attr-uib-tooltip=\"{{ t.tooltip }}\" ng-attr-tooltip-placement={{t.tooltipPlacement}}><span ng-if=\"t.value != null\" class=tick-value ng-attr-uib-tooltip=\"{{ t.valueTooltip }}\" ng-attr-tooltip-placement={{t.valueTooltipPlacement}}>{{ t.value }}</span></li></ul>"
1655+
"<span class=rz-bar-wrapper><span class=rz-bar></span></span> <span class=rz-bar-wrapper><span class=\"rz-bar rz-selection\" ng-style=barStyle></span></span> <span class=rz-pointer></span> <span class=rz-pointer></span> <span class=\"rz-bubble rz-limit\"></span> <span class=\"rz-bubble rz-limit\"></span> <span class=rz-bubble></span> <span class=rz-bubble></span> <span class=rz-bubble></span><ul ng-show=showTicks class=rz-ticks><li ng-repeat=\"t in ticks track by $index\" class=tick ng-class=\"{selected: t.selected}\" ng-style=t.style ng-attr-uib-tooltip=\"{{ t.tooltip }}\" ng-attr-tooltip-placement={{t.tooltipPlacement}} ng-attr-tooltip-append-to-body=\"{{ t.tooltip ? true : undefined}}\"><span ng-if=\"t.value != null\" class=tick-value ng-attr-uib-tooltip=\"{{ t.valueTooltip }}\" ng-attr-tooltip-placement={{t.valueTooltipPlacement}}>{{ t.value }}</span></li></ul>"
16421656
);
16431657

16441658
}]);

dist/rzslider.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)