Lack of consistency in single quotes and double quotes in your examples... dojo 1 typically uses double quotes.

I think the same issue is true with the code that landed in trunk also, fwiw. While Dojo 2 will move to what most of us consider a better approach to code style, to maintain consistency, we should follow the Dojo 1 code style in both the examples as well as the source code in master.