native-document 1.0.65 → 1.0.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2776,8 +2776,8 @@ var NativeDocument = (function (exports) {
|
|
|
2776
2776
|
try {
|
|
2777
2777
|
const indexObserver = callback.length >= 2 ? Observable(indexKey) : null;
|
|
2778
2778
|
let child = ElementCreator.getChild(callback(item, indexObserver));
|
|
2779
|
-
if(!child
|
|
2780
|
-
throw new NativeDocumentError("
|
|
2779
|
+
if(!child) {
|
|
2780
|
+
throw new NativeDocumentError("ForEach child can't be null or undefined!");
|
|
2781
2781
|
}
|
|
2782
2782
|
cache.set(keyId, { keyId, isNew: true, child: new WeakRef(child), indexObserver});
|
|
2783
2783
|
} catch (e) {
|
|
@@ -2949,7 +2949,7 @@ var NativeDocument = (function (exports) {
|
|
|
2949
2949
|
|
|
2950
2950
|
const indexObserver = isIndexRequired ? Observable(indexKey) : null;
|
|
2951
2951
|
let child = ElementCreator.getChild(callback(item, indexObserver));
|
|
2952
|
-
if(!child
|
|
2952
|
+
if(!child) {
|
|
2953
2953
|
throw new NativeDocumentError("ForEachArray child can't be null or undefined!");
|
|
2954
2954
|
}
|
|
2955
2955
|
cache.set(keyId, {
|