dom-render
Advanced tools
Comparing version 1.0.93 to 1.0.94
@@ -269,25 +269,27 @@ "use strict"; | ||
if (lastDoneExecute) { | ||
var iterable = this._rawSets.get(fullPathStr_1); | ||
// console.log('----->', iterable); | ||
var iterable_1 = this._rawSets.get(fullPathStr_1); | ||
// array check | ||
var front = strings.slice(0, strings.length - 1).map(function (it) { return isNaN(Number(it)) ? '.' + it : "[".concat(it, "]"); }).join(''); | ||
var last = strings[strings.length - 1]; | ||
var data = ScriptUtils_1.ScriptUtils.evalReturn('this' + front, this._domRender_proxy); | ||
if (last === 'length' && Array.isArray(data)) { | ||
var aIterable = this._rawSets.get(front.slice(1)); | ||
if (aIterable) { | ||
this.render(Array.from(aIterable)); | ||
var front_1 = strings.slice(0, strings.length - 1).map(function (it) { return isNaN(Number(it)) ? '.' + it : "[".concat(it, "]"); }).join(''); | ||
var last_1 = strings[strings.length - 1]; | ||
var data_1 = ScriptUtils_1.ScriptUtils.evalReturn('this' + front_1, this._domRender_proxy); | ||
new Promise(function (resolve) { | ||
if (last_1 === 'length' && Array.isArray(data_1)) { | ||
var aIterable = _this._rawSets.get(front_1.slice(1)); | ||
if (aIterable) { | ||
return _this.render(Array.from(aIterable)); | ||
} | ||
} | ||
} | ||
else if (iterable) { | ||
this.render(Array.from(iterable), fullPathStr_1); | ||
} | ||
this._targets.forEach(function (it) { | ||
// console.log('target------->,', it) | ||
// return; | ||
if (it.nodeType === Node.DOCUMENT_FRAGMENT_NODE || it.nodeType === Node.ELEMENT_NODE) { | ||
var targets = EventManager_1.eventManager.findAttrElements(it, _this.config); | ||
// console.log('------>', targets); | ||
EventManager_1.eventManager.changeVar(_this._domRender_proxy, targets, "this.".concat(fullPathStr_1), _this.config); | ||
else if (iterable_1) { | ||
return _this.render(Array.from(iterable_1), fullPathStr_1); | ||
} | ||
}).then(function (it) { | ||
_this._targets.forEach(function (it) { | ||
// console.log('target------->,', it) | ||
// return; | ||
if (it.nodeType === Node.DOCUMENT_FRAGMENT_NODE || it.nodeType === Node.ELEMENT_NODE) { | ||
var targets = EventManager_1.eventManager.findAttrElements(it, _this.config); | ||
// console.log('------>', targets); | ||
EventManager_1.eventManager.changeVar(_this._domRender_proxy, targets, "this.".concat(fullPathStr_1), _this.config); | ||
} | ||
}); | ||
}); | ||
@@ -294,0 +296,0 @@ } |
@@ -206,2 +206,3 @@ "use strict"; | ||
// console.log('-changeVar-->', obj, elements, varName); | ||
// forEach elements | ||
// value-link event | ||
@@ -208,0 +209,0 @@ this.procAttr(elements, EventManager.valueLinkAttrName, function (it, attribute) { |
{ | ||
"name": "dom-render", | ||
"version": "1.0.93", | ||
"version": "1.0.94", | ||
"main": "DomRender.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
656129
11879