Skip to content

Commit

Permalink
[fix] temporary hack to atleast re-render the template, #8
Browse files Browse the repository at this point in the history
  • Loading branch information
Swaagie committed Jul 31, 2014
1 parent b4cfcca commit 7ba2ca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pagelet.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ Pagelet.prototype.configure = function configure(name, data, roots) {
if (parent) parent.on('render', function render() {
pagelet.placeholders = pagelet.$('data-pagelet', pagelet.name, parent.placeholders);
pagelet.listen();
pagelet.render(pagelet.data || pagelet.parse());
pagelet.render(pagelet.parse() || pagelet.data);
});

pagelet.initialize();
Expand Down

0 comments on commit 7ba2ca9

Please sign in to comment.