Currently, it appears that the only "api-supported" way to create clones is using p.clone().
This is bad, because it's too high level: - It always creates the clone after the position. If you want the clone elsewhere, you need to move it (which is expensive). - It needs a position in the first place. There is no "real" need to have a position to create a clone, since it should be possible to create clone by tnode alone. Therefore, I'd suggest adding a new public method to position: p.insertCloneAsNthChild(tnode, n) -- Ville M. Vainio http://tinyurl.com/vainio --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en -~----------~----~----~----~------~----~------~--~---
