owl icon indicating copy to clipboard operation
owl copied to clipboard

[IMP] devtools: add __owl__ access.

Open SimonGenin opened this issue 5 years ago • 3 comments

To be able to make devtools, we need access to the owl variable on a component. It contains most of the information a devtool may required.

Just like in Vue js, we attach it to the HTMLElement of a component.

For its update, we use the method patched. On each patched call, a new owl is provided.

SimonGenin avatar Nov 09 '20 16:11 SimonGenin

@ged-odoo I'm interested in your opinion. Here's where I took inspiration: Dans vue js

SimonGenin avatar Nov 09 '20 16:11 SimonGenin

I improved it a bit already with the help of Lucas.

SimonGenin avatar Nov 09 '20 16:11 SimonGenin

/!\ It added a circular dependency. Needs to be fixed somehow.

SimonGenin avatar Nov 10 '20 10:11 SimonGenin