Allow reopened widgets to use `hbs` templates

This commit is contained in:
Robin Ward 2017-09-28 11:13:30 -04:00
parent 132cbac600
commit 7df349afd6
1 changed files with 4 additions and 0 deletions

View File

@ -127,6 +127,10 @@ export function reopenWidget(name, opts) {
return; return;
} }
if (opts.template) {
opts.html = opts.template;
}
Object.keys(opts).forEach(k => existing.prototype[k] = opts[k]); Object.keys(opts).forEach(k => existing.prototype[k] = opts[k]);
return existing; return existing;
} }