mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[IMP] update owl to v1.4.10
This commit is contained in:
@@ -587,7 +587,7 @@
|
|||||||
const tokens = compileExprToArray(expr, this.variables);
|
const tokens = compileExprToArray(expr, this.variables);
|
||||||
const done = new Set();
|
const done = new Set();
|
||||||
return tokens
|
return tokens
|
||||||
.map((tok) => {
|
.map((tok, i) => {
|
||||||
// "this" in captured expressions should be the current component
|
// "this" in captured expressions should be the current component
|
||||||
if (tok.value === "this") {
|
if (tok.value === "this") {
|
||||||
if (!done.has("this")) {
|
if (!done.has("this")) {
|
||||||
@@ -599,7 +599,12 @@
|
|||||||
// Variables that should be looked up in the scope. isLocal is for arrow
|
// Variables that should be looked up in the scope. isLocal is for arrow
|
||||||
// function arguments that should stay untouched (eg "ev => ev" should
|
// function arguments that should stay untouched (eg "ev => ev" should
|
||||||
// not become "const ev_1 = scope['ev']; ev_1 => ev_1")
|
// not become "const ev_1 = scope['ev']; ev_1 => ev_1")
|
||||||
if (tok.varName && !tok.isLocal) {
|
if (tok.varName &&
|
||||||
|
!tok.isLocal &&
|
||||||
|
// HACK: for backwards compatibility, we don't capture bare methods
|
||||||
|
// this allows them to be called with the rendering context/scope
|
||||||
|
// as their this value.
|
||||||
|
(!tokens[i + 1] || tokens[i + 1].type !== "LEFT_PAREN")) {
|
||||||
if (!done.has(tok.varName)) {
|
if (!done.has(tok.varName)) {
|
||||||
done.add(tok.varName);
|
done.add(tok.varName);
|
||||||
this.addLine(`const ${tok.varName}_${argId} = ${tok.value};`);
|
this.addLine(`const ${tok.varName}_${argId} = ${tok.value};`);
|
||||||
@@ -5572,9 +5577,9 @@ See https://github.com/odoo/owl/blob/master/doc/reference/config.md#mode for mor
|
|||||||
Object.defineProperty(exports, '__esModule', { value: true });
|
Object.defineProperty(exports, '__esModule', { value: true });
|
||||||
|
|
||||||
|
|
||||||
__info__.version = '1.4.9';
|
__info__.version = '1.4.10';
|
||||||
__info__.date = '2021-12-07T09:22:06.573Z';
|
__info__.date = '2021-12-07T14:32:29.551Z';
|
||||||
__info__.hash = '73f94fb';
|
__info__.hash = 'bc04f72';
|
||||||
__info__.url = 'https://github.com/odoo/owl';
|
__info__.url = 'https://github.com/odoo/owl';
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user