domql 1.6.38 → 1.6.39
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.
- package/package.json +1 -1
- package/src/element/iterate.js +3 -3
package/package.json
CHANGED
package/src/element/iterate.js
CHANGED
|
@@ -60,7 +60,7 @@ export const throughInitialDefine = (element) => {
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
const execParam = defineObj[param](elementProp, element, element.state)
|
|
63
|
+
const execParam = defineObj[param](elementProp, element, element.state, element.context)
|
|
64
64
|
if (execParam) element[param] = execParam
|
|
65
65
|
}
|
|
66
66
|
return element
|
|
@@ -76,9 +76,9 @@ export const throughUpdatedDefine = (element) => {
|
|
|
76
76
|
|
|
77
77
|
for (const param in obj) {
|
|
78
78
|
const execParam = ref.__exec[param]
|
|
79
|
-
if (execParam) ref.__defineCache[param] = execParam(element, element.state)
|
|
79
|
+
if (execParam) ref.__defineCache[param] = execParam(element, element.state, element.context)
|
|
80
80
|
const cached = exec(ref.__defineCache[param], element)
|
|
81
|
-
const newExecParam = obj[param](cached, element, element.state)
|
|
81
|
+
const newExecParam = obj[param](cached, element, element.state, element.context)
|
|
82
82
|
if (newExecParam) element[param] = newExecParam
|
|
83
83
|
}
|
|
84
84
|
return changes
|