Just click it to see in full size.
The code on the left used dojo 0.4 on the right it’s dojo 0.9. You can see undoubtably that dojo 0.9 makes you write less code. Let’s pick out some things.
dojo.html.toCoordinateObject() has become
dojo.coords() great, this always took a lot of time to write, but even better it needs to reference one object less and it has a much shorter name!
The scroll is included, if you set the second parameter (includeScroll) to
true you get the scroll already included, you can see in the old code I still did it by hand (though I think it existed there too).
And the padding is included too, you can see that I don’t do any padding calculation anymore additionally.
Kepp going dojo …