bugfixes in widgets

v1.18.x
psychobunny 11 years ago
parent 79e9819b7f
commit c4121f6ee6

@ -25,6 +25,8 @@ var async = require('async'),
rendered.push({ rendered.push({
html: html html: html
}); });
next(err);
}); });
}, function(err) { }, function(err) {
callback(err, rendered); callback(err, rendered);
@ -39,7 +41,7 @@ var async = require('async'),
}; };
Widgets.setArea = function(area, callback) { Widgets.setArea = function(area, callback) {
if (!area.location || !data.template) { if (!area.location || !area.template) {
callback({ callback({
error: 'Missing location and template data' error: 'Missing location and template data'
}); });

Loading…
Cancel
Save