Skip to content

Commit cc329a2

Browse files
author
Valentin Hervieu
committed
Add a rz prefix to the throttle function
As mentioned in #162
1 parent 72c7e74 commit cc329a2

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

dist/rzslider.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@
7474
return factory;
7575
})
7676

77-
.value('throttle',
77+
.value('rzThrottle',
7878
/**
79-
* throttle
79+
* rzThrottle
8080
*
8181
* Taken from underscore project
8282
*
@@ -121,7 +121,7 @@
121121
};
122122
})
123123

124-
.factory('RzSlider', ['$timeout', '$document', '$window', 'RzSliderOptions', 'throttle', function($timeout, $document, $window, RzSliderOptions, throttle) {
124+
.factory('RzSlider', ['$timeout', '$document', '$window', 'RzSliderOptions', 'rzThrottle', function($timeout, $document, $window, RzSliderOptions, rzThrottle) {
125125
'use strict';
126126

127127
/**
@@ -286,7 +286,7 @@
286286

287287
// Watch for changes to the model
288288

289-
thrLow = throttle(function() {
289+
thrLow = rzThrottle(function() {
290290
self.setMinAndMax();
291291
self.updateLowHandle(self.valueToOffset(self.scope.rzSliderModel));
292292
self.updateSelectionBar();
@@ -298,7 +298,7 @@
298298

299299
}, self.interval);
300300

301-
thrHigh = throttle(function() {
301+
thrHigh = rzThrottle(function() {
302302
self.setMinAndMax();
303303
self.updateHighHandle(self.valueToOffset(self.scope.rzSliderHigh));
304304
self.updateSelectionBar();

0 commit comments

Comments
 (0)