> > Maybe, but this would make fc.getOutlineFromClipboard less self contained. > This matters, because it can be called from several places, including the > read logic. > > I can't see why that would be the case? Can you explain why would getOutlineFromClipboard become less self contained if it returns vnode instance instead of position?
As a matter of fact I remember that I have replaced one particular call to this method with the call to another getVnodeFromClipboard especially to prevent it from calling c.selectPosition during the initialization before tree becomes ready. It is fully self-contained and can be called from anywhere and doesn't affect c state in any way. -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+unsubscr...@googlegroups.com. To post to this group, send email to leo-editor@googlegroups.com. Visit this group at https://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.