Refactor code so that doc parser works again (picking up dijit.byId() etc.).   As a bonus I think this will actually run faster than before.  Fixes #9915 !strict.
Refactor code so that doc parser works again (picking up dijit.byId() etc.).   As a bonus I think this will actually run faster than before.  Fixes #9915 !strict.

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

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