FIX: rare user card exception

- trigger the shown logic in user card view
- some tweaks to user card show logic
This commit is contained in:
Erick Guan
2015-05-25 22:34:57 +08:00
parent ff55bcb4d0
commit 54adf72582
3 changed files with 46 additions and 44 deletions

View File

@ -1,10 +1,12 @@
export default Ember.Component.extend({
_parse: function() {
this.$().find('hr').remove();
this.$().ellipsis();
Ember.run.next(null, () => {
this.$().find('hr').remove();
this.$().ellipsis();
});
}.on('didInsertElement'),
render: function(buffer) {
render(buffer) {
buffer.push(this.get('text'));
}
});