asdasd
This commit is contained in:
@@ -178,17 +178,14 @@
|
||||
if (comps && typeof comps.reset === 'function') {
|
||||
comps.reset([], { silent: true });
|
||||
}
|
||||
if (comps && typeof comps.add === 'function') {
|
||||
try {
|
||||
comps.add({ type: 'textnode', content }, { silent: true });
|
||||
} catch {}
|
||||
}
|
||||
}
|
||||
if (component.set) component.set('content', content);
|
||||
} catch {}
|
||||
try {
|
||||
if (component.components) {
|
||||
const comps = component.components();
|
||||
if (comps && typeof comps.reset === 'function') {
|
||||
comps.reset([], { silent: true });
|
||||
}
|
||||
}
|
||||
} catch {}
|
||||
if (component.view && component.view.el) {
|
||||
component.view.el.innerHTML = content;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user