Skip to content

Commit

Permalink
[fix] Also callback with the HTML of the template if the page is in s…
Browse files Browse the repository at this point in the history
…ync mode
  • Loading branch information
3rd-Eden committed May 15, 2014
1 parent a2374fd commit f6ded13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ Pagelet.readable('render', function render(options, fn) {
* @api private
*/
function fragment(content) {
if (options.substream) {
if (options.substream || pagelet.page && pagelet.page.mode === 'sync') {
data.view = content;
return fn.call(context, undefined, data);
}
Expand Down

0 comments on commit f6ded13

Please sign in to comment.