adads
This commit is contained in:
@@ -1 +1 @@
|
|||||||
1.1.7
|
1.1.8
|
||||||
@@ -171,20 +171,7 @@
|
|||||||
if (!component) return;
|
if (!component) return;
|
||||||
const content = String(html || '');
|
const content = String(html || '');
|
||||||
try {
|
try {
|
||||||
const isText = (component.is && component.is('text'))
|
|
||||||
|| (component.get && component.get('type') === 'text');
|
|
||||||
if (component.set) component.set('content', content);
|
if (component.set) component.set('content', content);
|
||||||
if (isText && component.view && component.view.el) {
|
|
||||||
try {
|
|
||||||
component.view.el.innerHTML = content;
|
|
||||||
} catch {}
|
|
||||||
}
|
|
||||||
if (isText && component.components) {
|
|
||||||
try {
|
|
||||||
const comps = component.components();
|
|
||||||
if (comps && comps.length) comps.reset();
|
|
||||||
} catch {}
|
|
||||||
}
|
|
||||||
} catch {}
|
} catch {}
|
||||||
if (component.view && typeof component.view.render === 'function') {
|
if (component.view && typeof component.view.render === 'function') {
|
||||||
component.view.render();
|
component.view.render();
|
||||||
|
|||||||
Reference in New Issue
Block a user