On 13 Okt., 18:05, buda <[email protected]> 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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en.