Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught ReferenceError: _interval is not defined when render_aync with Selector #92

Closed
fffx opened this issue Sep 30, 2019 · 2 comments

Comments

@fffx
Copy link
Contributor

fffx commented Sep 30, 2019

I use render_async with:

render_async some_path,  toggle: { selector: "#sync_load_trigger" }

when I click sync_load_trigger button I got

(index):11015 Uncaught ReferenceError: _interval is not defined
    at HTMLLIElement.<anonymous> ((index):11015)

render_async version: 2.1.2

My workaround is define a global variable _interval before render_async

 <script type="text/javascript">
       _interval = null
 </script>
nikolalsvk added a commit that referenced this issue Oct 1, 2019
Fix: "Uncaught ReferenceError: _interval" #92
@nikolalsvk
Copy link
Owner

Fix for this is here #93

@nikolalsvk
Copy link
Owner

I've just released new version 2.1.3! Feel free to check if everything is OK https://rubygems.org/gems/render_async/versions/2.1.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants