BigWonder BigWonder -4 years ago 262
Javascript Question

dojo how to override dijit class method

I need to override onClick method in the Tree.js. Is there any common way to override dojo/dijit classes methods?

Answer Source

You could use:

dojo.connect(tree, 'onClick', function(item) {
    /** Your Action **/
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download