Skip to Content | Skip to Navigation


dojo.unsubscribe

Deprecated. Dojo.unsubscribe() has been replaced by the dojo/topic module.

Code is changed from:

var handle = dojo.unsubscribe("some/topic", callback);
...
dojo.ununsubscribe(handle);

to:

require(["dojo/topic"], function(topic){
             var handle = topic.unsubscribe("some/topic", listener)
             ...
             handle.remove();
    });