Thanks

On 18 окт, 19:43, Andy <andreas.schuhmache...@googlemail.com> wrote:
> On 13 Okt., 18:05, buda <www...@pochta.ru> wrote:
>
> > I need to create class which is inhereted from enumerable module,
> > sortable class and observable class
> > Is it possible in one operation call?
>
> Just use Object.extend()
>
> var MyClass = Class.create();
> Object.extend(MyClass.prototype, Enumerable);
> Object.extend(MyClass.prototype, Sortable.prototype);
> Object.extend(MyClass.prototype, Observable.prototype);
>
> Object.extend(MyClass.prototype, {
>   // your methods
>   doSomething: function() ...
>
>
>
>
>
>
>
> });

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to