Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
teddi
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
wildfirecode13
teddi
Commits
63d58d22
Commit
63d58d22
authored
Nov 17, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
1247711d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
ui.d.ts
dist/ui.d.ts
+1
-1
ui.js
dist/ui.js
+2
-1
ui.ts
src/ui.ts
+1
-1
No files found.
dist/ui.d.ts
View file @
63d58d22
...
...
@@ -4,4 +4,4 @@
* @param wait
* @param immediate
*/
export
declare
const
debounce
:
(
fn
:
Function
,
wait
:
number
,
immediate
?:
boolean
)
=>
()
=>
void
;
export
declare
const
debounce
:
(
fn
:
Function
,
wait
?
:
number
,
immediate
?:
boolean
)
=>
()
=>
void
;
dist/ui.js
View file @
63d58d22
...
...
@@ -8,7 +8,8 @@ exports.debounce = void 0;
* @param immediate
*/
exports
.
debounce
=
function
(
fn
,
wait
,
immediate
)
{
if
(
immediate
===
void
0
)
{
immediate
=
false
;
}
if
(
wait
===
void
0
)
{
wait
=
2000
;
}
if
(
immediate
===
void
0
)
{
immediate
=
true
;
}
var
timer
;
return
function
()
{
if
(
timer
)
...
...
src/ui.ts
View file @
63d58d22
...
...
@@ -4,7 +4,7 @@
* @param wait
* @param immediate
*/
export
const
debounce
=
(
fn
:
Function
,
wait
:
number
,
immediate
=
fals
e
)
=>
{
export
const
debounce
=
(
fn
:
Function
,
wait
=
2000
,
immediate
=
tru
e
)
=>
{
let
timer
:
number
|
null
;
return
function
()
{
if
(
timer
)
clearTimeout
(
timer
)
...
...
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