Add documentation & clarification to clone method #622

This commit is contained in:
Kevin Jahns
2024-03-14 20:33:34 +01:00
parent b235c57d76
commit 2fba694cd4
8 changed files with 32 additions and 0 deletions

View File

@@ -30,6 +30,10 @@ export class YXmlText extends YText {
}
/**
* Makes a copy of this data type that can be included somewhere else.
*
* Note that the content is only readable _after_ it has been included somewhere in the Ydoc.
*
* @return {YXmlText}
*/
clone () {