mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[FIX] playground: update example to owl 2
This commit is contained in:
+2
-11
@@ -39,18 +39,9 @@ function makeCodeIframe(js, css, xml) {
|
||||
const script = doc.createElement("script");
|
||||
script.type = "module";
|
||||
const content = `
|
||||
import * as utils from "./utils.js";
|
||||
(function (owl) {
|
||||
const _configure = owl.App.prototype.configure;
|
||||
owl.App.prototype.configure = function configureOverriden(config) {
|
||||
config = Object.assign({ dev: true }, config);
|
||||
this.addTemplates(\`${sanitizedXML}\`);
|
||||
return _configure.call(this, config);
|
||||
}
|
||||
})(owl);
|
||||
(async function() {
|
||||
(async function(TEMPLATES) {
|
||||
${js}
|
||||
})()`;
|
||||
})(\`${sanitizedXML}\`)`;
|
||||
script.innerHTML = content;
|
||||
doc.body.appendChild(script);
|
||||
});
|
||||
|
||||
+456
-528
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user