Can anyone point me in the right direction of some real world object-orientated javascript? I’m learning OO for javascript from a few books but all the examples given in these books boil down to the dog object inheriting from the animal prototype or similar. I really want to see something a bit more substantial.
I’ve looked at jQuery and similar libraries (base, prototype) but I consider them to be verbose examples. I was looking for a script where I can see inheritance in use (classical or protoypal) clearly.
Good “real world” examples to learn OO javascript is to actually study some of the javascript frameworks out there. Some of them support and use OO within their own framework code:
These provide great reference and various strategies for writing OO javascript.