@odoo/owl 3.0.0-alpha.12 → 3.0.0-alpha.13

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/compiler.js CHANGED
@@ -109,7 +109,7 @@ let tokenizeSymbol = function (expr) {
109
109
  let s = expr[0];
110
110
  if (s && s.match(/[a-zA-Z_\$]/)) {
111
111
  let i = 1;
112
- while (expr[i] && expr[i].match(/\w/)) {
112
+ while (expr[i] && expr[i].match(/[\w\$]/)) {
113
113
  s += expr[i];
114
114
  i++;
115
115
  }
@@ -1378,16 +1378,9 @@ class CodeGenerator {
1378
1378
  keyArg = `${ctx.tKeyExpr} + ${keyArg}`;
1379
1379
  }
1380
1380
  let id = generateId("comp");
1381
- const propList = [];
1382
- for (let p in ast.props || {}) {
1383
- let [name, suffix] = p.split(".");
1384
- if (!suffix) {
1385
- propList.push(`"${name}"`);
1386
- }
1387
- }
1388
1381
  this.staticDefs.push({
1389
1382
  id,
1390
- expr: `app.createComponent(${ast.isDynamic ? null : expr}, ${!ast.isDynamic}, ${!!ast.slots}, ${!!ast.dynamicProps}, [${propList}])`,
1383
+ expr: `app.createComponent(${ast.isDynamic ? null : expr}, ${!ast.isDynamic})`,
1391
1384
  });
1392
1385
  if (ast.isDynamic) {
1393
1386
  // If the component class changes, this can cause delayed renders to go
@@ -1503,7 +1496,7 @@ class CodeGenerator {
1503
1496
  let id = generateId("comp");
1504
1497
  this.staticDefs.push({
1505
1498
  id,
1506
- expr: `app.createComponent(null, false, true, false, false)`,
1499
+ expr: `app.createComponent(null, false)`,
1507
1500
  });
1508
1501
  const target = compileExpr(ast.target);
1509
1502
  const key = this.generateComponentKey();