BigWonder BigWonder - 3 months ago 15
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

You could use:

dojo.connect(tree, 'onClick', function(item) {
    /** Your Action **/
});
Comments