function(){
        var me = this,
            surface = me.getSurface(),
            destroySprites = me.autoDestroy,
            item;
            
        if (surface) {
            while (me.getCount() > 0) {
                item = me.first();
                me.remove(item);
                surface.remove(item, destroySprites);
            }
        }
        me.clearListeners();
    }
function(){
        var me = this,
            surface = me.getSurface(),
            destroySprites = me.autoDestroy,
            item;
            
        if (surface) {
            while (me.getCount() > 0) {
                item = me.first();
                me.remove(item);
                surface.remove(item, destroySprites);
            }
        }
        me.clearListeners();
    }
function ( ) { var me = this , surface = me . getSurface ( ) , destroySprites = me . autoDestroy , item ; if ( surface ) { while ( me . getCount ( ) > 0 ) { item = me . first ( ) ; me . remove ( item ) ; surface . remove ( item , destroySprites ) ; } } me . clearListeners ( ) ; }
Destroys this CompositeSprite.
Destroys this CompositeSprite .