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 
For more options, visit this group at 

Reply via email to