Fixed bug causing "undefined" to disappear next to a image rendered by a <% story.content as="image" %> macro

This commit is contained in:
Tobi Schäfer 2008-05-16 10:12:31 +00:00
parent c63789a82a
commit 1e54c789f0

View file

@ -430,7 +430,11 @@ Story.prototype.format_filter = function(value, param, mode) {
case "image": case "image":
var image = HopObject.getFromPath(value, "images"); var image = HopObject.getFromPath(value, "images");
image && image.render_macro(param); if (image) {
res.push();
image.render_macro(param);
return res.pop();
}
break; break;
default: default: