Skip to content

Commit

Permalink
add a sync calling param
Browse files Browse the repository at this point in the history
  • Loading branch information
hefangshi committed Dec 10, 2015
1 parent cf26489 commit 521edfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ Swig.prototype._w = Swig.prototype._widget = function (layer, id, attr, options)
}

return function (locals) {
var container = attr['container'] || attr['for'];
var container = attr['container'] || attr['for'];
var pageletOptions = {
container: container,
model: attr.model,
Expand All @@ -134,7 +134,7 @@ Swig.prototype._w = Swig.prototype._widget = function (layer, id, attr, options)

if (layer.bigpipe.isSpiderMode) {
var syncPagelet = new layer.bigpipe.Pagelet(pageletOptions)
syncPagelet.start(layer.bigpipe.sources[attr.id]);
syncPagelet.start(layer.bigpipe.pageletData[attr.id], true);
return container ? syncPagelet.html : '<div id="' + attr.id + '"> ' + syncPagelet.html + '</div>';
}
else {
Expand Down

0 comments on commit 521edfe

Please sign in to comment.