don't attempt to parse a non-existing widget area

This commit is contained in:
psychobunny
2014-03-12 16:51:59 -04:00
parent 58fe16e15c
commit bdc7a19bd7

View File

@@ -166,6 +166,7 @@ var ajaxify = {};
numLocations = widgetLocations.length; numLocations = widgetLocations.length;
function renderWidget(err, renderedWidgets) { function renderWidget(err, renderedWidgets) {
if (area.html()) {
area.html(templates.prepare(area.html()).parse({ area.html(templates.prepare(area.html()).parse({
widgets: renderedWidgets widgets: renderedWidgets
})).removeClass('hidden'); })).removeClass('hidden');
@@ -177,6 +178,7 @@ var ajaxify = {};
$this.addClass($this.attr('no-widget-class')); $this.addClass($this.attr('no-widget-class'));
}); });
} }
}
checkCallback(); checkCallback();
} }