Allow reopened widgets to use `hbs` templates
This commit is contained in:
parent
132cbac600
commit
7df349afd6
|
@ -127,6 +127,10 @@ export function reopenWidget(name, opts) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (opts.template) {
|
||||
opts.html = opts.template;
|
||||
}
|
||||
|
||||
Object.keys(opts).forEach(k => existing.prototype[k] = opts[k]);
|
||||
return existing;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue