This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/components/text-overflow.js.es6
Sam 1da5060bf8 FIX: HR in profile causing user badge to behave weirdly
makes no sense to have HR in card anyway so removing them
2015-02-19 14:07:35 +11:00

11 lines
223 B
JavaScript

export default Ember.Component.extend({
_parse: function() {
this.$().find('hr').remove();
this.$().ellipsis();
}.on('didInsertElement'),
render: function(buffer) {
buffer.push(this.get('text'));
}
});