docs: function (id, state) {
              for (var i = 0; i < this.length; i++) {
                  var dlg  = this[i];
                  var $dlg = $(dlg);
                  var data = $dlg.data('selectId');
                  if (!data || !data.states || !data.$tree) continue;
                  /*if (data.states[id] &&
                      state &&
                      data.states[id].val  === state.val  &&
                      data.states[id].ack  === state.ack  &&
                      data.states[id].q    === state.q    &&
                      data.states[id].from === state.from &&
                      data.states[id].ts   === state.ts
                  ) return;*/
  
                  data.states[id] = state;
                  var tree = data.$tree.fancytree('getTree');
                  var node = tree.getNodeByKey(id);
                  // var node = null;
                  // tree.visit(function (n) {
                  //     if (n.key === id) {
                  //         node = n;
                  //         return false;
                  //     }
                  // });
                  if (node) node.render(true);
              }
              return this;
          }