mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[REF] component: rename t-keep-alive to t-keepalive
This is useful to preserve the following nice property: when we have an attribute t-something-someotherthing, we can get the directive name by removing 't-' at the front, and splitting on '-'.
This commit is contained in:
+2
-2
@@ -195,7 +195,7 @@ export class QWeb {
|
||||
attf: 1,
|
||||
props: 1,
|
||||
key: 1,
|
||||
keep: 1 // todo: rename keep-alive to keepalive
|
||||
keepalive: 1
|
||||
};
|
||||
[
|
||||
forEachDirective,
|
||||
@@ -940,7 +940,7 @@ const widgetDirective: Directive = {
|
||||
ctx.addLine("//WIDGET");
|
||||
ctx.rootContext.shouldDefineOwner = true;
|
||||
let props = node.getAttribute("t-props");
|
||||
let keepAlive = node.getAttribute("t-keep-alive") ? true : false;
|
||||
let keepAlive = node.getAttribute("t-keepalive") ? true : false;
|
||||
|
||||
// t-on- events...
|
||||
const events: [string, string][] = [];
|
||||
|
||||
Reference in New Issue
Block a user