FIX: Use proper iconNode when compiling virtual dom templates
This commit is contained in:
@@ -23,6 +23,8 @@ export function iconNode(id, params) {
|
||||
return renderIcon('node', id, params);
|
||||
}
|
||||
|
||||
Discourse.__widget_helpers.iconNode = iconNode;
|
||||
|
||||
export function registerIconRenderer(renderer) {
|
||||
_renderers.unshift(renderer);
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@ const Discourse = Ember.Application.extend({
|
||||
rootElement: '#main',
|
||||
_docTitle: document.title,
|
||||
RAW_TEMPLATES: {},
|
||||
__widget_helpers: {},
|
||||
|
||||
getURL(url) {
|
||||
if (!url) return url;
|
||||
|
||||
Reference in New Issue
Block a user