Could you explain why you need this?
It makes little sense to me.
Anyway you can do:

if (this.parent) this.parent();


--
Fábio Miranda Costa
Solucione Sistemas
Engenheiro de interfaces


On Fri, Apr 16, 2010 at 1:07 PM, Bogdan Gusiev <[email protected]> wrote:

> Good morning JS geeks,
>
> Can somebody advice is there a way to check if class method exists in
> Extended class?
>
> Like:
>
> new Class({
>
> Extends: UnknownClass,
>
> show: function() {
>  if (this.hasParent()) {
>    this.parent();
>  }
>  this.doSomethingElse();
> }
>
> });
>
>
> --
> Subscription settings:
> http://groups.google.com/group/mootools-users/subscribe?hl=en
>

Reply via email to