var ShiningStar = new Class({
  Extends: Star,
  draw: function (){
    this.parent(); // Star.prototype.draw
    dostuff()
  }

})

On Mar 10, 2011, at 7:21 AM, Andrea Dessì wrote:

> On Thu, Mar 10, 2011 at 14:14, remram <xvie...@gmail.com> wrote:
> Hi Andrea,
> Thanks for reply, but I would like to avoid {if} {else} or {swich}
> cases.
> 
> 
> yes I know that feeling (grin) :)
> Surely if you need a good "overload" structure, 
> polymorph-js/ is a good one.
> 
> As always... it depends on what you have to build. ;)
> --
> Andrea

Reply via email to