From c4121f6ee64902cf96c1b6e5af006da8287d0483 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Wed, 19 Feb 2014 17:22:26 -0500 Subject: [PATCH] bugfixes in widgets --- src/widgets.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/widgets.js b/src/widgets.js index b341c25284..ac848a0b33 100644 --- a/src/widgets.js +++ b/src/widgets.js @@ -25,6 +25,8 @@ var async = require('async'), rendered.push({ html: html }); + + next(err); }); }, function(err) { callback(err, rendered); @@ -39,7 +41,7 @@ var async = require('async'), }; Widgets.setArea = function(area, callback) { - if (!area.location || !data.template) { + if (!area.location || !area.template) { callback({ error: 'Missing location and template data' });