btfou

dojo/on multiple map events

Discussion created by btfou on Jun 29, 2013
Latest reply on Jul 2, 2013 by btfou
dojo/on supports multiple event listeners like:
dijit.byId('test').on('click, contextmenu', function() {
 alert('hi')
});


however multiple events don't work on a map:
//this doesn't work
app.map.on('mouse-move, mouse-drag', function(evt) {
 //do something or other
});
//neither does this
app.map.on('click, contextmenu', function(evt) {
 //do something or other
});


Why is this and will it be possible in a future version?

Outcomes