I use the Dojo framework to help me develop Javascript with cross-viewing DOM manipulation and event management.
For this, I was hoping to use custom event dispatching between objects. But I find nothing on this. I read about subscription / publication, but that is not quite what I want.
Here is what I would like to do:
var myObject = new CustomObject(); dojo.connect(myObject, 'onCustomEvent', function(argument) { console.log('custom event fired with argument : ' + argument); }); var CustomObject = (function() { CustomObject = function() {
Can anybody help me?
Thanks.
source share