New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Master phoenix rcdl 2 #3011
Master phoenix rcdl 2 #3011
Conversation
This PR targets the un-managed branch odoo-dev/odoo:master-phoenix, it needs to be retargeted before it can be merged. |
// Helpers for normalize | ||
// -------------------------------------------------------------------------- | ||
|
||
preserveSelection() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like this should be in selection plugin?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably.
But this is rather incomplete and only handles the use cases of list normalization so far...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's fine to have incomplete implementation imo. and it's better to put code at the proper location, so there is a higher chance that someone finds it (and improve it if necessary) later
@@ -105,3 +79,19 @@ export function applyToTree(root, func) { | |||
} | |||
return modifiedRoot; | |||
} | |||
|
|||
// For now, only a few cases are handled. | |||
export function preservePos(node, offset) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move into a method of the list plugin
728225b
to
4c84b1b
Compare
4c84b1b
to
749bca4
Compare
No description provided.