dojo.subscribe

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

Code is changed from:

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

to:

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

(TODO: add in context after Kris has implemented it)

Table of Contents

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