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/views/html_view.js

13 lines
280 B
JavaScript

Discourse.HtmlView = Ember.View.extend({
render: function(buffer) {
var key = this.get("key"),
htmlContent = PreloadStore.get("htmlContent");
if (htmlContent && htmlContent[key] && htmlContent[key].length) {
buffer.push(htmlContent[key]);
}
}
});