Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
react-vanilla
Project
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Кубота
react-vanilla
Commits
afda31a8
Commit
afda31a8
authored
May 13, 2024
by
Иван Кубота
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Store.debounce now return function that have now method
parent
c18a196b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
Store.js
Store.js
+8
-1
No files found.
Store.js
View file @
afda31a8
...
...
@@ -710,14 +710,21 @@ Store.debounce = function(fn, dt, strictDelay) {
timeout
=
false
;
fn
.
apply
(
scope
,
args
)
};
return
function
(){
var
out
=
function
(){
lastCall
=
+
new
Date
();
args
=
[].
slice
.
call
(
arguments
);
scope
=
this
;
if
(
!
timeout
){
timeout
=
setTimeout
(
realCall
,
dt
);
}
};
out
.
now
=
function
(
anyway
){
if
(
timeout
||
anyway
)
{
clearTimeout
(
timeout
)
realCall
();
}
}
return
out
;
};
var
HookPrototype
=
function
()
{};
HookPrototype
.
prototype
=
{
...
...
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