mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[FIX] playground: properly set dev flag in examples
This commit is contained in:
committed by
Samuel Degueldre
parent
b3062d29f1
commit
f04423da23
@@ -24,8 +24,7 @@ class Root extends Component {
|
||||
}
|
||||
}
|
||||
|
||||
// dev=false for benchmarking. we don't want to benchmark dev code!
|
||||
mount(Root, document.body, { templates: TEMPLATES, dev: false });`;
|
||||
mount(Root, document.body, { templates: TEMPLATES, dev: true });`;
|
||||
|
||||
const COMPONENTS_XML = /*xml*/`
|
||||
<templates>
|
||||
@@ -934,7 +933,7 @@ const env = {
|
||||
ui: createUI()
|
||||
};
|
||||
|
||||
mount(Root, document.body, { templates: TEMPLATES, env });
|
||||
mount(Root, document.body, { templates: TEMPLATES, env, dev: true });
|
||||
`;
|
||||
|
||||
const RESPONSIVE_XML = /*xml*/`
|
||||
@@ -1741,7 +1740,8 @@ class Root extends Component {
|
||||
}
|
||||
|
||||
|
||||
mount(Root, document.body, { templates: TEMPLATES, dev: true });
|
||||
// dev=false for benchmarking. we don't want to benchmark dev code!
|
||||
mount(Root, document.body, { templates: TEMPLATES, dev: false });
|
||||
|
||||
`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user