draw toolbar on style event not working

1949
1
Jump to solution
08-22-2013 11:04 AM
BenFousek
Occasional Contributor III
I'm having issues migrating to on style events for draw toolbar.
This does not register an event:
var on = app.map.drawToolbar.on('draw-end', function(evt) {   on.remove();   //do stuff blah blah blah });

It works on the sample.

I've had no problems with on style events with dojo and other esri objects.
This works:
var on = layer.on('load', function() {   on.remove();   //do stuff blah blah blah });
0 Kudos
1 Solution

Accepted Solutions
BenFousek
Occasional Contributor III
Got it.

Draw toolbar returns a different object for on than it does with connect.

PS: the draw toolbar api ref is missing events sections.

View solution in original post

0 Kudos
1 Reply
BenFousek
Occasional Contributor III
Got it.

Draw toolbar returns a different object for on than it does with connect.

PS: the draw toolbar api ref is missing events sections.
0 Kudos