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