mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
2b5cea944b
This commit removes an AST change during the code generation of slots. Before, the `compileTSlot` function deleted the `t-props` attribute directly on `ast.attrs`. This creates wrong code when compiling a second time as the `t-props` attribute does not exist anymore.
14 lines
402 B
Plaintext
14 lines
402 B
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`t-slot compile t-props correctly multiple time 1`] = `
|
|
"function anonymous(app, bdom, helpers
|
|
) {
|
|
let { text, createBlock, list, multi, html, toggler, comment } = bdom;
|
|
let { callSlot } = helpers;
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
return callSlot(ctx, node, key, 'default', false, Object.assign({}, {a:1}));
|
|
}
|
|
}"
|
|
`;
|