dist/carrot.js
/**
     * Revives the sprite. Used for object pools.
     *
     * @method Carrot.Sprite#revive
     */
Revives the sprite. Used for object pools.
Revives the sprite . Used for object pools .
revive()
    {
        this.events.onRevived();
        this.parent.removeChild(this);
        this.active = true;
        this.visible = true;
        this.parent.addChild(this);
        this.createNode();
    }
revive ( ) { this . events . onRevived ( ) ; this . parent . removeChild ( this ) ; this . active = true ; this . visible = true ; this . parent . addChild ( this ) ; this . createNode ( ) ; }
Revives the sprite.
Revives the sprite .
// Fire onRevived event // Remove from inactives array. // Add to actives array. // Create HTML element if none exists