when dealing with toolbar events like onDrawEnd with latest dojo version (1.9 herein)
the dojo/on or dojo/_base/connect is unable to work with it. We can use dojo/aspect instead.
require(['dojo/aspect',...], function(Aspect, ...) {
Aspect.after(toolbar, "onDrawEnd", function(geometry) {...}, true);
});
make sure receiveArguments is true in order to use the arguments passed to onDrawEnd, otherwise, it doesn't work.