Skip to content

Commit 5a82c85

Browse files
Simplified expression that was potentially unsafe for minification
1 parent f87916e commit 5a82c85

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
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.8.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-
2016-02-08 */
4+
2016-02-09 */
55
rzslider {
66
position: relative;
77
display: inline-block;

dist/rzslider.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*! angularjs-slider - v2.8.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-
2016-02-08 */
4+
2016-02-09 */
55
/*jslint unparam: true */
66
/*global angular: false, console: false, define, module */
77
(function(root, factory) {
@@ -1075,8 +1075,8 @@
10751075
*/
10761076
roundStep: function(value) {
10771077
var steppedDifference = parseFloat((value - this.minValue) / this.step).toPrecision(12);
1078-
steppedDifference = Math.round(+steppedDifference) * this.step;
1079-
var newValue = (this.minValue + (+steppedDifference)).toFixed(this.precision);
1078+
steppedDifference = Math.round(steppedDifference) * this.step;
1079+
var newValue = (this.minValue + steppedDifference).toFixed(this.precision);
10801080
return +newValue;
10811081
},
10821082

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)