malinajs 0.7.0-a4 → 0.7.0-a5

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.
Files changed (2) hide show
  1. package/malina.js +4 -4
  2. package/package.json +1 -1
package/malina.js CHANGED
@@ -1501,12 +1501,12 @@
1501
1501
  if(ex.length == 2) {
1502
1502
  assertExpression(ex[0]);
1503
1503
  let exp = source.substring(ex[0].start, ex[0].end);
1504
- if(this.config.immutable) result.watchers.push(`$watch($cd, () => (${exp}), ${callback}, {ro: false});`);
1505
- else result.watchers.push(`$watch($cd, () => (${exp}), ${callback}, {ro: false, cmp: $runtime.$$deepComparator(0)});`);
1504
+ if(this.config.immutable) result.watchers.push(`$watch(() => (${exp}), ${callback}, {ro: false});`);
1505
+ else result.watchers.push(`$watch(() => (${exp}), ${callback}, {ro: false, cmp: $runtime.$$deepComparator(0)});`);
1506
1506
  } else if(ex.length > 2) {
1507
1507
  for(let i = 0; i < ex.length - 1; i++) assertExpression(ex[i]);
1508
1508
  let exp = source.substring(ex[0].start, ex[ex.length - 2].end);
1509
- result.watchers.push(`$watch($cd, () => [${exp}], ($args) => { (${callback}).apply(null, $args); }, {ro: false, cmp: $runtime.$$deepComparator(1)});`);
1509
+ result.watchers.push(`$watch(() => [${exp}], ($args) => { (${callback}).apply(null, $args); }, {ro: false, cmp: $runtime.$$deepComparator(1)});`);
1510
1510
  } else throw 'Error';
1511
1511
  } else throw 'Error';
1512
1512
  };
@@ -6270,7 +6270,7 @@
6270
6270
  return { event, fn, rootModifier };
6271
6271
  }
6272
6272
 
6273
- const version = '0.7.0-a4';
6273
+ const version = '0.7.0-a5';
6274
6274
 
6275
6275
 
6276
6276
  async function compile(source, config = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "malinajs",
3
- "version": "0.7.0-a4",
3
+ "version": "0.7.0-a5",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "prepare": "npm run build",