js/big_pipe.js | 8 +++---- src/Render/BigPipe.php | 47 +++++++++++++++++++++++++++-------------- src/Render/BigPipeInterface.php | 2 +- src/Render/BigPipeMarkup.php | 2 +- 4 files changed, 37 insertions(+), 22 deletions(-) diff --git a/js/big_pipe.js b/js/big_pipe.js index 41dbc67..2deefec 100644 --- a/js/big_pipe.js +++ b/js/big_pipe.js @@ -27,7 +27,7 @@ // commands is still arriving), textContent will be empty which will cause // JSON.parse() to fail. Remove once so that it can be processed again // later. - // @see bigPipeProcessContainer() + // @see bigPipeProcessDocument() if (content === '') { $(this).removeOnce('big-pipe'); } @@ -43,7 +43,7 @@ }); // Then, simulate an AJAX response having arrived, and let the Ajax // system handle it. - ajaxObject.success(response); + ajaxObject.success(response, 'success'); } } } @@ -52,8 +52,8 @@ * Processes a streamed HTML document receiving placeholder replacements. * * @param {HTMLDocument} context - * The HTML document containing