Skip to content

Commit

Permalink
set up immediately, revert #2.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Doug committed Jun 26, 2020
1 parent 767e5fe commit ca86ebb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/views/render_async/_request_jquery.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ if (window.jQuery) {
});
}

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

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

0 comments on commit ca86ebb

Please sign in to comment.