Single parent error #10

Closed
vweyl opened this Issue Dec 8, 2012 · 1 comment

Comments

Projects
None yet
2 participants

vweyl commented Dec 8, 2012

Let's say in my html code I have a

MyUI = new OObject();
MyUI.template = '

'
MyUI.place(document.getElementById("UIplaceholder"));

It tells me the template should only have one parent node. So I have to wrap the template into another element.
Couldn't the target of 'place' be used as the parent?

Owner

podefr commented Jan 14, 2013

Hi Vincent,

I agree with you that this is a problem, though I can't find a better solution than the current one.
The problem here is that if you append two OObjects to the same domNode, then you won't be able to move them again to another domNode without moving both at the same time. I can't group domNodes in another way than be putting them into their own single parent.

Olivier

podefr closed this Jan 14, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment