Simplify the code to avoid having to paste in old dojo functions.
Simplify the code to avoid having to paste in old dojo functions.

Refs #2727.

git-svn-id: 674a2d6b1e32e53f607eb824547723f32280967e@8286 560b804f-0ae3-0310-86f3-f6aa0a117693

harbalk/delite,harbalk/delite,kitsonk/delite,Sam-Cummins/delite,kitsonk/delite,Sam-Cummins/delite