maastermedia/docs — comment on commit b9481aaac08714658f9ff0d5d2384d785bc4219d
File:  line 0
By kitsonk:

I would do it as declarative script, with type="dojo/on", though what you are doing is totally legitimate.