From c4474d52951e969d2d4abfbb54756d60c1c1f8b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Thu, 10 Jun 2021 10:37:24 +0200 Subject: [PATCH] [IMP] update owl to v1.3.1 --- owl.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/owl.js b/owl.js index 6f38d87a..a4506ae5 100644 --- a/owl.js +++ b/owl.js @@ -1667,6 +1667,7 @@ ctx.variables = Object.create(null); ctx.parentNode = ctx.generateID(); ctx.allowMultipleRoots = true; + ctx.shouldDefineParent = true; ctx.hasParentWidget = true; ctx.shouldDefineResult = false; ctx.addLine(`let c${ctx.parentNode} = extra.parentNode;`); @@ -2376,7 +2377,9 @@ } // Step 4: add the appropriate function call to current component // ------------------------------------------------ - const parentComponent = `utils.getComponent(context)`; + const parentComponent = ctx.rootContext.shouldDefineParent + ? `parent` + : `utils.getComponent(context)`; const key = ctx.generateTemplateKey(); const parentNode = ctx.parentNode ? `c${ctx.parentNode}` : "result"; const extra = `Object.assign({}, extra, {parentNode: ${parentNode}, parent: ${parentComponent}, key: ${key}})`; @@ -5395,9 +5398,9 @@ exports.utils = utils; - __info__.version = '1.3.0'; - __info__.date = '2021-06-04T12:19:29.161Z'; - __info__.hash = '9cbcf20'; + __info__.version = '1.3.1'; + __info__.date = '2021-06-10T08:37:12.080Z'; + __info__.hash = 'd121155'; __info__.url = 'https://github.com/odoo/owl';