mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 12:13:58 -06:00
oops semicolons
This commit is contained in:
parent
646b49e5ae
commit
1d8882a1dd
@ -126,14 +126,14 @@ export function createWidget(name, opts) {
|
||||
}
|
||||
|
||||
export function reopenWidget(name, opts) {
|
||||
let existing = _registry[name]
|
||||
let existing = _registry[name];
|
||||
if (!existing) {
|
||||
console.error(`Could not find widget ${name} in registry`);
|
||||
return
|
||||
}
|
||||
|
||||
Object.keys(opts).forEach(k => existing.prototype[k] = opts[k])
|
||||
return existing
|
||||
Object.keys(opts).forEach(k => existing.prototype[k] = opts[k]);
|
||||
return existing;
|
||||
}
|
||||
|
||||
export default class Widget {
|
||||
|
Loading…
Reference in New Issue
Block a user