[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:
Géry Debongnie
2019-04-14 10:44:29 +02:00
parent d7bed96667
commit 3733734ae5
3 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -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][] = [];