threerings / tripleplay

Utilities for use in PlayN-based games.
Other
92 stars 32 forks source link

Box.set(el) should remove element from its parent. #70

Closed guillerodriguez closed 6 years ago

guillerodriguez commented 6 years ago

Before this fix, the following sequence:

box1.set(foo);
box2.set(foo);
box1.set(bar);

results in an exception ("Could not remove Layer because it is not a child of the GroupLayer...")