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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "domql",
3
3
  "description": "DOM rendering Javascript framework at early stage.",
4
- "version": "1.6.38",
4
+ "version": "1.6.39",
5
5
  "repository": "https://github.com/domql/domql",
6
6
  "publishConfig": {
7
7
  "registry": "https://registry.npmjs.org"
@@ -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