code: function getIcon(object) {
  
        var type = types[object.type];
        if (type && type.icon) {
          return 'icons/' + type.icon;
        }
      }
docs: ------------------------------------------------------------