tree.getIconClass = function (item, /*Boolean*/ opened) {
var type = item.type.toLowerCase();
if (type === "folder") {
return opened ? "dijitFolderOpened" : "dijitFolderClosed";
} else {
// Lots of modules are marked as type undefined, for which we have no icon, so use object instead.
// TODO: we also have no icon for instance, so use object icon.
if (/undefined|instance/.test(type)) {
type = "object";
}
return "icon16 " + type + "Icon16";
}
}