AnsweredAssumed Answered

deactivate  draw-end handler

Question asked by maximcouton on Jul 28, 2014
Latest reply on Jul 28, 2014 by maximcouton

Hi,

 

He is my problem,

 

var tb = new Draw(map);

tb.on("draw-end", lang.hitch(map, getAreaAndLength));

 

 

How can I later deactivate this handler ?

 

I wante something like :  tb.on("draw-end").set(null)  ??

 

This is because I have to switch between two handlers,

IF set directely the second handler it still call the first

so finally , it calls the two handlers.

 

Thanks,

Maxim

Outcomes