asdad
This commit is contained in:
@@ -173,6 +173,11 @@
|
||||
const isText = (component.is && component.is('text'))
|
||||
|| (component.get && component.get('type') === 'text');
|
||||
try {
|
||||
if (isText && component.components) {
|
||||
try {
|
||||
component.components(content);
|
||||
} catch {}
|
||||
}
|
||||
if (component.set) component.set('content', content);
|
||||
} catch {}
|
||||
if (component.view && typeof component.view.render === 'function') {
|
||||
|
||||
@@ -434,6 +434,11 @@
|
||||
if (viewHtml === modelHtml) return;
|
||||
try {
|
||||
syncing.add(target);
|
||||
if (target.components) {
|
||||
try {
|
||||
target.components(viewHtml);
|
||||
} catch {}
|
||||
}
|
||||
if (target.set) target.set('content', viewHtml);
|
||||
target.trigger && target.trigger('change:content');
|
||||
if (target.view && typeof target.view.render === 'function') {
|
||||
|
||||
Reference in New Issue
Block a user