malinajs 0.7.14 → 0.7.16
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/malina.js +2 -2
- package/package.json +1 -1
- package/runtime.js +3 -1
package/malina.js
CHANGED
|
@@ -5807,7 +5807,7 @@
|
|
|
5807
5807
|
let n = xNode('bindAttribute', {
|
|
5808
5808
|
$wait: ['apply'],
|
|
5809
5809
|
name,
|
|
5810
|
-
exp: propList[name] && parsed.binding ? parsed.binding : exp,
|
|
5810
|
+
exp: (propList[name] || isExpression(prop.raw)) && parsed.binding ? parsed.binding : exp,
|
|
5811
5811
|
hasElement,
|
|
5812
5812
|
el: element.bindName()
|
|
5813
5813
|
}, (ctx, data) => {
|
|
@@ -6887,7 +6887,7 @@
|
|
|
6887
6887
|
});
|
|
6888
6888
|
}
|
|
6889
6889
|
|
|
6890
|
-
const version = '0.7.
|
|
6890
|
+
const version = '0.7.16';
|
|
6891
6891
|
|
|
6892
6892
|
|
|
6893
6893
|
async function compile(source, config = {}) {
|
package/package.json
CHANGED
package/runtime.js
CHANGED
|
@@ -120,11 +120,13 @@ const _compareDeep = (a, b, lvl) => {
|
|
|
120
120
|
let a1 = isArray(b);
|
|
121
121
|
if(a0 !== a1) return true;
|
|
122
122
|
|
|
123
|
-
if(a0) {
|
|
123
|
+
if (a0) {
|
|
124
124
|
if(a.length !== b.length) return true;
|
|
125
125
|
for(let i = 0; i < a.length; i++) {
|
|
126
126
|
if(_compareDeep(a[i], b[i], lvl - 1)) return true;
|
|
127
127
|
}
|
|
128
|
+
} else if (a instanceof Date) {
|
|
129
|
+
if(b instanceof Date) return +a !== +b;
|
|
128
130
|
} else {
|
|
129
131
|
let set = {};
|
|
130
132
|
for(let k in a) {
|