Reputation: 689
I connected a function via dojo.connect
to a dojox.layout.ContentPane
according to Dojo's documentation:
dojo.connect(cp, 'onHide', function(e) {
alert('test');
console.log(e);
});
I expect argument e
to be the triggered event object, but console output is undefined
.
What's the problem here?
Upvotes: 0
Views: 412
Reputation: 8162
The answer depends on what you are connecting to.
onHide
function.Note: dojo.connect
has been replaced with dojo/on
.
Upvotes: 1