Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Communications Backbone System
backbone-adapter-javascript
Commits
d40746e8
Unverified
Commit
d40746e8
authored
2 years ago
by
Dan Jones
Browse files
Options
Download
Email Patches
Plain Diff
fix: pass function to setTimeout
parent
3e437e7e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
dist/adapter.esm.js
dist/adapter.esm.js
+1
-1
dist/adapter.js
dist/adapter.js
+1
-1
src/adapter/index.js
src/adapter/index.js
+1
-1
No files found.
dist/adapter.esm.js
View file @
d40746e8
...
...
@@ -97,7 +97,7 @@ class Adapter {
this
.
poll
()
.
then
(()
=>
{
if
(
this
.
pollTimer
)
clearTimeout
(
this
.
pollTimer
);
this
.
pollTimer
=
setTimeout
(
this
.
poll
()
,
interval
*
1000
);
this
.
pollTimer
=
setTimeout
(
this
.
poll
,
interval
*
1000
);
});
}
...
...
This diff is collapsed.
Click to expand it.
dist/adapter.js
View file @
d40746e8
...
...
@@ -99,7 +99,7 @@ class Adapter {
this
.
poll
()
.
then
(()
=>
{
if
(
this
.
pollTimer
)
clearTimeout
(
this
.
pollTimer
);
this
.
pollTimer
=
setTimeout
(
this
.
poll
()
,
interval
*
1000
);
this
.
pollTimer
=
setTimeout
(
this
.
poll
,
interval
*
1000
);
});
}
...
...
This diff is collapsed.
Click to expand it.
src/adapter/index.js
View file @
d40746e8
...
...
@@ -97,7 +97,7 @@ export class Adapter {
this
.
poll
()
.
then
(()
=>
{
if
(
this
.
pollTimer
)
clearTimeout
(
this
.
pollTimer
);
this
.
pollTimer
=
setTimeout
(
this
.
poll
()
,
interval
*
1000
);
this
.
pollTimer
=
setTimeout
(
this
.
poll
,
interval
*
1000
);
});
}
...
...
This diff is collapsed.
Click to expand it.
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