@domql/element 2.5.19 → 2.5.20
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 +4 -3
- package/package.json +2 -2
- package/set.js +4 -3
package/dist/cjs/set.js
CHANGED
|
@@ -38,11 +38,12 @@ var import_mixins = require("./mixins");
|
|
|
38
38
|
var import_content = require("./mixins/content");
|
|
39
39
|
const set = function(params, options = {}, el) {
|
|
40
40
|
const element = el || this;
|
|
41
|
-
const
|
|
41
|
+
const { __ref: ref, content } = element;
|
|
42
|
+
const __contentRef = content && content.__ref;
|
|
42
43
|
const lazyLoad = element.props && element.props.lazyLoad;
|
|
43
|
-
if (__contentRef && __contentRef.__cached && (0, import_utils.deepContains)(params,
|
|
44
|
+
if (ref.__noCollectionDifference || __contentRef && __contentRef.__cached && (0, import_utils.deepContains)(params, content)) {
|
|
44
45
|
console.log("is content equal");
|
|
45
|
-
return
|
|
46
|
+
return content.update();
|
|
46
47
|
}
|
|
47
48
|
if (options.preventContentUpdate === true)
|
|
48
49
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@domql/element",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.20",
|
|
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": "
|
|
34
|
+
"gitHead": "ca3d2e3ed3c4103c5659b2bcb2ca4df4c2bd7bf7",
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@babel/core": "^7.12.0"
|
|
37
37
|
}
|
package/set.js
CHANGED
|
@@ -9,12 +9,13 @@ import { removeContent } from './mixins/content'
|
|
|
9
9
|
|
|
10
10
|
const set = function (params, options = {}, el) {
|
|
11
11
|
const element = el || this
|
|
12
|
-
const
|
|
12
|
+
const { __ref: ref, content } = element
|
|
13
|
+
const __contentRef = content && content.__ref
|
|
13
14
|
const lazyLoad = element.props && element.props.lazyLoad
|
|
14
15
|
|
|
15
|
-
if (__contentRef && __contentRef.__cached && deepContains(params,
|
|
16
|
+
if (ref.__noCollectionDifference || (__contentRef && __contentRef.__cached && deepContains(params, content))) {
|
|
16
17
|
console.log('is content equal')
|
|
17
|
-
return
|
|
18
|
+
return content.update()
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
if (options.preventContentUpdate === true) return
|