Thats a good idea. This code works actually. I just cannot (really) override existing methods. If I include methods with the same name in MySortable, they are not called, because within Sortable all methods are called with Sortable.nameOfMethod() - they don't use this.nameOfMethod().
On 14 Jan., 18:03, nlloyds <[email protected]> wrote: > Cyrus, > > On Jan 14, 1:50 am, Cyrus <[email protected]> wrote: > > > I am seeing myself copying the whole Sortable because it cannot be > > inherited. > > I don't know if it's been mentioned, but you since Sortable is just an > object you could try extending it with your own methods like this > > var MySortable = Object.extend({ > hover : function hover() { ... }, > ... > > }, Sortable); > > Don't know if it will work in practice, though. > > Nathan --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
