You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It surprised me that clone( deep == false ) returns an element with children. It's a common practice that shallow clone returns the same element but without any children.
The text was updated successfully, but these errors were encountered:
Other: `model.Element#clone()` now does not clone children when passed `false` and recursively clones children when passed `true`. Closes #689.
BREAKING CHANGE: `model.Element#clone()` does not clone children when not in the `deep` mode. See #689.
mlewand
transferred this issue from ckeditor/ckeditor5-engine
Oct 9, 2019
It surprised me that
clone( deep == false )
returns an element with children. It's a common practice that shallow clone returns the same element but without any children.The text was updated successfully, but these errors were encountered: