Skip to content

Commit e1ce141

Browse files
committed
updated interval to get int from attribute, account for null vals
1 parent f66b750 commit e1ce141

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

dist/rzslider.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -233,11 +233,12 @@ function throttle(func, wait, options) {
233233
this.disabled = this.scope.rzSliderDisabled;
234234

235235
/**
236-
* Set the speed at which the slider updates
236+
* The interval at which the slider updates when the model/high values
237+
* are altered from outside the slider
237238
*
238239
* @type {number}
239240
*/
240-
this.interval = this.scope.rzSliderInterval || 350;
241+
this.interval = this.scope.rzSliderInterval !== null ? this.scope.rzSliderInterval : 350;
241242

242243
/**
243244
* The delta between min and max value
@@ -337,7 +338,7 @@ function throttle(func, wait, options) {
337338
self.updateCmbLabel();
338339
}
339340

340-
}, self.interval, { leading: false });
341+
}, self.interval);
341342

342343
thrHigh = throttle(function()
343344
{
@@ -346,7 +347,7 @@ function throttle(func, wait, options) {
346347
self.updateSelectionBar();
347348
self.updateTicksScale();
348349
self.updateCmbLabel();
349-
}, self.interval, { leading: false });
350+
}, self.interval);
350351

351352
this.scope.$on('rzSliderForceRender', function()
352353
{
@@ -1421,7 +1422,7 @@ function throttle(func, wait, options) {
14211422
rzSliderShowTicks: '=?',
14221423
rzSliderShowTicksValue: '=?',
14231424
rzSliderDisabled: '=?',
1424-
rzSliderInterval: '@',
1425+
rzSliderInterval: '=?',
14251426
},
14261427

14271428
/**

0 commit comments

Comments
 (0)