Skip to content

Commit

Permalink
6.0.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin Hervieu committed Feb 15, 2017
1 parent 8f51bb2 commit 2d7fb91
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 19 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 6.0.1 (2017-02-14)
## Fixes
- Ensure model value is current when custom translate function runs for tick values

# 6.0.0 (2017-01-02)
## Refactoring
- Refactor/simplify the css rules to ease the customisation.
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angularjs-slider",
"version": "6.0.0",
"version": "6.0.1",
"homepage": "https://github.com/angular-slider/angularjs-slider",
"authors": [
"Rafal Zajac <[email protected]>",
Expand Down
6 changes: 3 additions & 3 deletions dist/rzslider.css

Large diffs are not rendered by default.

16 changes: 9 additions & 7 deletions dist/rzslider.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*! angularjs-slider - v6.0.0 -
/*! angularjs-slider - v6.0.1 -
(c) Rafal Zajac <[email protected]>, Valentin Hervieu <[email protected]>, Jussi Saarivirta <[email protected]>, Angelin Sirbu <[email protected]> -
https://github.com/angular-slider/angularjs-slider -
2017-01-02 */
2017-02-15 */
/*jslint unparam: true */
/*global angular: false, console: false, define, module */
(function(root, factory) {
Expand Down Expand Up @@ -2054,7 +2054,7 @@
this.applyLowValue();
if (this.range)
this.applyHighValue();
this.applyModel();
this.applyModel(true);
this.updateHandles('lowValue', this.valueToPosition(newMinValue));
this.updateHandles('highValue', this.valueToPosition(newMaxValue));
},
Expand All @@ -2066,7 +2066,6 @@
*/
positionTrackingHandle: function(newValue) {
var valueChanged = false;

newValue = this.applyMinMaxLimit(newValue);
if (this.range) {
if (this.options.pushRange) {
Expand All @@ -2085,6 +2084,7 @@
if (this.tracking === 'lowValue' && newValue > this.highValue) {
this.lowValue = this.highValue;
this.applyLowValue();
this.applyModel();
this.updateHandles(this.tracking, this.maxH.rzsp);
this.updateAriaAttributes();
this.tracking = 'highValue';
Expand All @@ -2097,6 +2097,7 @@
else if (this.tracking === 'highValue' && newValue < this.lowValue) {
this.highValue = this.lowValue;
this.applyHighValue();
this.applyModel();
this.updateHandles(this.tracking, this.minH.rzsp);
this.updateAriaAttributes();
this.tracking = 'lowValue';
Expand All @@ -2115,13 +2116,14 @@
this.applyLowValue();
else
this.applyHighValue();
this.applyModel();
this.updateHandles(this.tracking, this.valueToPosition(newValue));
this.updateAriaAttributes();
valueChanged = true;
}

if (valueChanged)
this.applyModel();
this.applyModel(true);
},

applyMinMaxLimit: function(newValue) {
Expand Down Expand Up @@ -2195,10 +2197,10 @@
* Apply the model values using scope.$apply.
* We wrap it with the internalChange flag to avoid the watchers to be called
*/
applyModel: function() {
applyModel: function(callOnChange) {
this.internalChange = true;
this.scope.$apply();
this.callOnChange();
callOnChange && this.callOnChange();
this.internalChange = false;
},

Expand Down
2 changes: 1 addition & 1 deletion dist/rzslider.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/rzslider.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/rzslider.scss

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angularjs-slider",
"version": "6.0.0",
"version": "6.0.1",
"description": "AngularJS slider directive with no external dependencies. Mobile friendly!.",
"main": "dist/rzslider.js",
"repository": {
Expand Down

0 comments on commit 2d7fb91

Please sign in to comment.