- The Book of Dojo
- Quick Installation
- Hello World
- Debugging Tutorial
- Introduction
- Part 1: Life With Dojo
- Part 2: Dijit
- Part 3: JavaScript With Dojo and Dijit
- Part 4: Testing, Tuning and Debugging
- Part 5: DojoX
- The Dojo Book, 0.4
Object Orientation
Submitted by criecke on Sun, 04/29/2007 - 14:15.
(this section currently is: http://docs.dojocampus.org/dojo/declare
As we saw in the introduction to Part 3, JavaScript doesn't have a class system like Java. But Dojo has functions to simulate one. For some background on JavaScript and prototype-based object orientation, chapter 9 of David Flanagan's JavaScript: The Definitive Guide, 5th edition is a good read.
This section has some pretty abstract stuff, and you may wish to skip it on the first read. Certainly you can do a lot with Dojo without using dojo.declare or the other object orientation functions. But a good knowledge of it will help you program faster and smarter.
- Printer-friendly version
- Login or register to post comments
- Subscribe post

Link "chapter 9 of David Flanagan's JavaScript: The Definitiv...
Nice if you added a link to this guide.
Bad link
The link for "introduction to Part 3" doesn't go to part 3, it goes to the top level of the book.
But don't fix the link, because the introduction to part 3 doesn't really say that, and certainly doesn't say enough about JavaScript object orientation to justify the back-reference. I suggest deleting the clause and merging in the next sentence, i.e., "JavaScript doesn't have a class system like Java, but Dojo has functions to simulate one." is a fine opening sentence for this chapter.