Merge pull request #1822 from cfstras/breakUp_username_fix

Fix Post-rendering bug
This commit is contained in:
Sam 2014-01-14 22:01:09 -08:00
commit e5b4f0f51e
1 changed files with 3 additions and 2 deletions

View File

@ -7,9 +7,10 @@
Handlebars.registerHelper('breakUp', function(property, hint, options) { Handlebars.registerHelper('breakUp', function(property, hint, options) {
var prop = Ember.Handlebars.get(this, property, options); var prop = Ember.Handlebars.get(this, property, options);
if (!prop) return ""; if (!prop) return "";
hint = Ember.Handlebars.get(this, hint, options); if (typeof(hint) !== 'string') hint = property;
return Discourse.Formatter.breakUp(prop, hint); hint = Ember.Handlebars.get(this, hint, options);
return new Handlebars.SafeString(Discourse.Formatter.breakUp(prop, hint));
}); });
/** /**