FIX: Some failing specs

This commit is contained in:
Robin Ward
2013-07-18 12:26:38 -04:00
parent e3bbb2c8bb
commit 751b757c1d
2 changed files with 4 additions and 4 deletions

View File

@@ -61,7 +61,7 @@ Discourse.Utilities = {
var url = Discourse.Utilities.avatarUrl(options.username, options.size, options.avatarTemplate);
// We won't render an invalid url
if (Em.isEmpty(url)) { return ""; }
if (!url || url.length === 0) { return ""; }
var classes = "avatar" + (options.extraClasses ? " " + options.extraClasses : "");
var title = (options.title) ? " title='" + Handlebars.Utils.escapeExpression(options.title || "") + "'" : "";