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

This could be achieved by declaring the attach points in your JS code as a comment. By defining them the way they are now, they're going on the prototype object, where they are not needed. Also, initializing variables to null is unnecessary and although I'm not sure it's in our style guide, it's redundant should be avoided. There's no compiler to make the unnecessary step go away, and both the assignment and prototype reference suggest code paths which aren't needed.