[REF] owl: move metadata into __info__

This differentiate better metadata and owl exported values.  Also, and
this is the goal, it gives a space to add extra keys in the future.
This commit is contained in:
Géry Debongnie
2019-05-21 13:53:16 +02:00
parent 3d9f4e028c
commit da275e74fd
3 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -153,7 +153,7 @@ owl.utils.whenReady(startApp);`;
class App extends owl.Component {
constructor(...args) {
super(...args);
this.version = owl._version;
this.version = owl.__info__.version;
this.SAMPLES = SAMPLES;
this.widgets = { TabbedEditor };
@@ -349,7 +349,7 @@ class TabbedEditor extends owl.Component {
//------------------------------------------------------------------------------
// Application initialization
//------------------------------------------------------------------------------
document.title = `${document.title} (v${owl._version})`;
document.title = `${document.title} (v${owl.__info__.version})`;
document.addEventListener("DOMContentLoaded", async function() {
const templates = await owl.utils.loadTemplates("templates.xml");
const qweb = new owl.QWeb(templates);