Remove RawDivView and use regular handlebars

This commit is contained in:
Robin Ward 2013-07-29 14:17:03 -04:00
parent b11e1f8b40
commit e7f349ff0f
2 changed files with 1 additions and 12 deletions

View File

@ -50,7 +50,7 @@
</div>
</div>
{{/unless}}
{{view Discourse.RawDivView class="cooked" contentBinding="cooked"}}
<div class='cooked'>{{{cooked}}}</div>
{{view Discourse.PostMenuView postBinding="this" postViewBinding="view"}}
</div>
{{view Discourse.RepliesView contentBinding="replies" postViewBinding="view"}}

View File

@ -1,11 +0,0 @@
// used to render a div with unescaped contents
Discourse.RawDivView = Ember.View.extend({
shouldRerender: Discourse.View.renderIfChanged('content'),
render: function(buffer) {
buffer.push(this.get('content'));
}
});