Skip to content

Commit

Permalink
wip renderedtext#106, start/stop polling with events
Browse files Browse the repository at this point in the history
  • Loading branch information
Doug committed Jun 2, 2020
1 parent de6aedf commit ab3de7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions app/views/render_async/_request_jquery.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,7 @@ if (window.jQuery) {
});
}

// DVB _runAfterDocumentLoaded(_setUpToggle);
_setUpToggle();
_runAfterDocumentLoaded(_setUpToggle);
<% elsif !toggle %>
_runAfterDocumentLoaded(_renderAsyncFunction)
<% end %>
Expand Down
3 changes: 1 addition & 2 deletions app/views/render_async/_request_vanilla.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,7 @@
}
}

// DVB _runAfterDocumentLoaded(_setUpToggle);
_setUpToggle();
_runAfterDocumentLoaded(_setUpToggle);
<% elsif !toggle %>
_runAfterDocumentLoaded(_renderAsyncFunction);
<% end %>
Expand Down

0 comments on commit ab3de7f

Please sign in to comment.