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();
    });

Table of Contents

Error in the documentation? Can’t find what you are looking for? Let us know!