@domql/element 2.5.71 → 2.5.72

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/dist/cjs/set.js CHANGED
@@ -59,7 +59,9 @@ const set = function(params, options = {}, el) {
59
59
  if (options.preventContentUpdate === true && !hasCollection)
60
60
  return;
61
61
  if (ref.__noCollectionDifference || __contentRef && __contentRef.__cached && (0, import_utils.deepContains)(params, content)) {
62
- return content == null ? void 0 : content.update();
62
+ if (content == null ? void 0 : content.update)
63
+ content.update();
64
+ return;
63
65
  }
64
66
  if (params) {
65
67
  const { childExtend } = params;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domql/element",
3
- "version": "2.5.71",
3
+ "version": "2.5.72",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "index.js",
@@ -31,7 +31,7 @@
31
31
  "@domql/state": "latest",
32
32
  "@domql/utils": "latest"
33
33
  },
34
- "gitHead": "2750ffc91678c3b2e02f21c82fe58bc593414adb",
34
+ "gitHead": "08604718a10463296d269e62b11b26091ff67085",
35
35
  "devDependencies": {
36
36
  "@babel/core": "^7.12.0"
37
37
  }
package/set.js CHANGED
@@ -30,8 +30,8 @@ const set = function (params, options = {}, el) {
30
30
  if (options.preventContentUpdate === true && !hasCollection) return
31
31
 
32
32
  if (ref.__noCollectionDifference || (__contentRef && __contentRef.__cached && deepContains(params, content))) {
33
- return content?.update()
34
- // return
33
+ if (content?.update) content.update()
34
+ return
35
35
  }
36
36
 
37
37
  if (params) {