Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dmachi/391171 to your computer and use it in GitHub Desktop.
Save dmachi/391171 to your computer and use it in GitHub Desktop.
dojo.require("dijit.Tree");
dojo.extend(dijit.Tree, {
childWidgetType: "dijit._TreeNode",
_createTreeNode: function(args){
if (typeof this.childWidgetType == 'string') {
this.childWidgetType = dojo.getObject(this.childWidgetType);
}
return new this.childWidgetType(args);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment