code: function updateBreadcrumb() {
          breadcrumbs.html("");
          var buffer = [];
          for (var i = 0; i < path.length; i++) {
              var node = path[i];
              if (node.type == FOLDER_TYPE) {
                  var divider = "<span class='divider'>/</span>"
                  if (i == path.length - 1) { //chk for last item
                      divider = "";
                  }
                  buffer.push("<li><a href='javascript:;' id='" + node.resourceId + "'>" + node.name + " </a> " + divider + "</li>");
              } else {
                  buffer.push("<span  id='" + node.resourceId + "'>" + node.name + " </span>");
                  // breadcrumbs.append("<li><span  id='"+ node.resourceId+"'>" + node.name + " </span></li>");
              }
          }
  
          breadcrumbs.append(buffer.join(""));
  
          breadcrumbs.find('a').click(function (e) {
              var id = e.currentTarget.id;
              try {
                  id = parseInt(id);
              }
              catch (e) {
              }
              renderItemsByFolderId(id);
              while (true) {
                  var cur = getCurrentItem();
                  if (id == cur.resourceId) {
                      break;
                  }
                  path.pop();
              }
              updateBreadcrumb();
          });
  
          //handle disabling of Up node in tree when folderId is zero
          if (folderId === 0) {
              var upNode = resourceTree.find('ul li:first-child');
              if (path.length > 1) {
                  upNode.removeClass('disabled');
                  upNode.find('i').addClass('icon-arrow-up');
              }
              else {
                  upNode.addClass('disabled');
                  upNode.find('i').addClass('icon-home');
              }
          }
      }
docs: update breadcrumb