ketsuekiro / manialive

Automatically exported from code.google.com/p/manialive
GNU Lesser General Public License v3.0
0 stars 0 forks source link

addComponent and removeComponent take different types #38

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
in ManiaLive\Gui\Windowing\Container we have:

function addComponent(Drawable $component)
function removeComponent(Component $component)

and Component and Drawable are not related (inheritance-wise).

Is it normal? You can stuff like: add a Drawable, and then you cannot remove it 
because it's not a Component.

Original issue reported on code.google.com by maximeraoust on 19 Jul 2011 at 5:32

GoogleCodeExporter commented 8 years ago

Original comment by martin.g...@gmail.com on 9 Nov 2011 at 5:47