maqetta/maqetta — comment on commit 6148483222f0cbc340844eafbc2174ba159ae220
File: maqetta.core.client/WebContent/davinci/ui/widgets/NewFile.js line 23
By childsb:

i consider this a good practice. my templated widget dev process is
1) write the HTML template with dojoAttachPoints and dojoAttachEvents
2) Stub the dijit class, copy and paste all the attach points to the top (with null) and make function stubs from attachEvents
3) Code the event logic.

Declaring the attach points at the top makes it so i dont have to switch back and forth between HTML and JS file. I also think its less mysterious when someone else picks up the code and see this.fileTree, they can trace it up to the top.