Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
I
i20rzslider
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jedife
i20rzslider
Commits
cc329a2a
Commit
cc329a2a
authored
Oct 31, 2015
by
Valentin Hervieu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a rz prefix to the throttle function
As mentioned in #162
parent
72c7e74c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
rzslider.js
dist/rzslider.js
+5
-5
rzslider.min.js
dist/rzslider.min.js
+1
-1
rzslider.js
src/rzslider.js
+5
-5
No files found.
dist/rzslider.js
View file @
cc329a2a
...
...
@@ -74,9 +74,9 @@
return
factory
;
})
.
value
(
'
t
hrottle'
,
.
value
(
'
rzT
hrottle'
,
/**
*
t
hrottle
*
rzT
hrottle
*
* Taken from underscore project
*
...
...
@@ -121,7 +121,7 @@
};
})
.
factory
(
'RzSlider'
,
[
'$timeout'
,
'$document'
,
'$window'
,
'RzSliderOptions'
,
'
throttle'
,
function
(
$timeout
,
$document
,
$window
,
RzSliderOptions
,
t
hrottle
)
{
.
factory
(
'RzSlider'
,
[
'$timeout'
,
'$document'
,
'$window'
,
'RzSliderOptions'
,
'
rzThrottle'
,
function
(
$timeout
,
$document
,
$window
,
RzSliderOptions
,
rzT
hrottle
)
{
'use strict'
;
/**
...
...
@@ -286,7 +286,7 @@
// Watch for changes to the model
thrLow
=
t
hrottle
(
function
()
{
thrLow
=
rzT
hrottle
(
function
()
{
self
.
setMinAndMax
();
self
.
updateLowHandle
(
self
.
valueToOffset
(
self
.
scope
.
rzSliderModel
));
self
.
updateSelectionBar
();
...
...
@@ -298,7 +298,7 @@
},
self
.
interval
);
thrHigh
=
t
hrottle
(
function
()
{
thrHigh
=
rzT
hrottle
(
function
()
{
self
.
setMinAndMax
();
self
.
updateHighHandle
(
self
.
valueToOffset
(
self
.
scope
.
rzSliderHigh
));
self
.
updateSelectionBar
();
...
...
dist/rzslider.min.js
View file @
cc329a2a
This diff is collapsed.
Click to expand it.
src/rzslider.js
View file @
cc329a2a
...
...
@@ -74,9 +74,9 @@
return
factory
;
})
.
value
(
'
t
hrottle'
,
.
value
(
'
rzT
hrottle'
,
/**
*
t
hrottle
*
rzT
hrottle
*
* Taken from underscore project
*
...
...
@@ -121,7 +121,7 @@
};
})
.
factory
(
'RzSlider'
,
function
(
$timeout
,
$document
,
$window
,
RzSliderOptions
,
t
hrottle
)
{
.
factory
(
'RzSlider'
,
function
(
$timeout
,
$document
,
$window
,
RzSliderOptions
,
rzT
hrottle
)
{
'use strict'
;
/**
...
...
@@ -286,7 +286,7 @@
// Watch for changes to the model
thrLow
=
t
hrottle
(
function
()
{
thrLow
=
rzT
hrottle
(
function
()
{
self
.
setMinAndMax
();
self
.
updateLowHandle
(
self
.
valueToOffset
(
self
.
scope
.
rzSliderModel
));
self
.
updateSelectionBar
();
...
...
@@ -298,7 +298,7 @@
},
self
.
interval
);
thrHigh
=
t
hrottle
(
function
()
{
thrHigh
=
rzT
hrottle
(
function
()
{
self
.
setMinAndMax
();
self
.
updateHighHandle
(
self
.
valueToOffset
(
self
.
scope
.
rzSliderHigh
));
self
.
updateSelectionBar
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment