Merge pull request #1822 from cfstras/breakUp_username_fix
Fix Post-rendering bug
This commit is contained in:
commit
e5b4f0f51e
|
@ -7,9 +7,10 @@
|
|||
Handlebars.registerHelper('breakUp', function(property, hint, options) {
|
||||
var prop = Ember.Handlebars.get(this, property, options);
|
||||
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));
|
||||
});
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue