Check out Class#create http://prototypejs.org/api/class/create
It's a great way to get started with OO javascript. -Hector On Fri, Feb 27, 2009 at 3:43 PM, greghauptmann <greg.hauptm...@gmail.com>wrote: > > Hi all, > > I confess this is a newbie question in advance: > > Q1 - If one wants to build a set of higher level library functions in > javascript (e.g. to aid in drawing objects say) does Prototype assist > here? That is would it provide a framework, or a standard way of > building up JavaScript code with an OO like approach? > > Q2 - What would people recommend here for a set of higher level > Javascript functions that themselves may lend themself to being > modeled in a OO like fashion? i.e. in the javascript programming > world is this something you just would not consider trying to do (i.e. > and sticking with functional approach). > > Thanks > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---