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
2d224dd9
Commit
2d224dd9
authored
Dec 29, 2015
by
Valentin Hervieu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore(coverage): ignore useless lines not directly related to the slider
parent
2e3cdbe2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
13 deletions
+9
-13
rzslider.js
dist/rzslider.js
+4
-6
rzslider.min.js
dist/rzslider.min.js
+1
-1
rzslider.js
src/rzslider.js
+4
-6
No files found.
dist/rzslider.js
View file @
2d224dd9
...
...
@@ -6,6 +6,7 @@
/*global angular: false, console: false, define, module */
(
function
(
root
,
factory
)
{
'use strict'
;
/* istanbul ignore next */
if
(
typeof
define
===
'function'
&&
define
.
amd
)
{
// AMD. Register as an anonymous module.
define
([
'angular'
],
factory
);
...
...
@@ -90,6 +91,7 @@
*/
return
function
(
func
,
wait
,
options
)
{
'use strict'
;
/* istanbul ignore next */
var
getTime
=
(
Date
.
now
||
function
()
{
return
new
Date
().
getTime
();
});
...
...
@@ -98,16 +100,13 @@
var
previous
=
0
;
options
=
options
||
{};
var
later
=
function
()
{
previous
=
options
.
leading
===
false
?
0
:
getTime
();
previous
=
getTime
();
timeout
=
null
;
result
=
func
.
apply
(
context
,
args
);
context
=
args
=
null
;
};
return
function
()
{
var
now
=
getTime
();
if
(
!
previous
&&
options
.
leading
===
false
)
{
previous
=
now
;
}
var
remaining
=
wait
-
(
now
-
previous
);
context
=
this
;
args
=
arguments
;
...
...
@@ -209,7 +208,7 @@
*
* @type {number}
*/
this
.
step
=
0
;
this
.
step
=
1
;
/**
* The name of the handle we are currently tracking
...
...
@@ -731,7 +730,6 @@
*/
updateTicksScale
:
function
()
{
if
(
!
this
.
options
.
showTicks
)
return
;
if
(
!
this
.
step
)
return
;
//if step is 0, we'll get a zero division
var
positions
=
''
,
ticksCount
=
Math
.
round
((
this
.
maxValue
-
this
.
minValue
)
/
this
.
step
)
+
1
;
...
...
dist/rzslider.min.js
View file @
2d224dd9
This diff is collapsed.
Click to expand it.
src/rzslider.js
View file @
2d224dd9
...
...
@@ -10,6 +10,7 @@
/*global angular: false, console: false, define, module */
(
function
(
root
,
factory
)
{
'use strict'
;
/* istanbul ignore next */
if
(
typeof
define
===
'function'
&&
define
.
amd
)
{
// AMD. Register as an anonymous module.
define
([
'angular'
],
factory
);
...
...
@@ -94,6 +95,7 @@
*/
return
function
(
func
,
wait
,
options
)
{
'use strict'
;
/* istanbul ignore next */
var
getTime
=
(
Date
.
now
||
function
()
{
return
new
Date
().
getTime
();
});
...
...
@@ -102,16 +104,13 @@
var
previous
=
0
;
options
=
options
||
{};
var
later
=
function
()
{
previous
=
options
.
leading
===
false
?
0
:
getTime
();
previous
=
getTime
();
timeout
=
null
;
result
=
func
.
apply
(
context
,
args
);
context
=
args
=
null
;
};
return
function
()
{
var
now
=
getTime
();
if
(
!
previous
&&
options
.
leading
===
false
)
{
previous
=
now
;
}
var
remaining
=
wait
-
(
now
-
previous
);
context
=
this
;
args
=
arguments
;
...
...
@@ -213,7 +212,7 @@
*
* @type {number}
*/
this
.
step
=
0
;
this
.
step
=
1
;
/**
* The name of the handle we are currently tracking
...
...
@@ -735,7 +734,6 @@
*/
updateTicksScale
:
function
()
{
if
(
!
this
.
options
.
showTicks
)
return
;
if
(
!
this
.
step
)
return
;
//if step is 0, we'll get a zero division
var
positions
=
''
,
ticksCount
=
Math
.
round
((
this
.
maxValue
-
this
.
minValue
)
/
this
.
step
)
+
1
;
...
...
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