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.subscribe("some/topic", listener)
// ...
handle.remove();
});