code: function(monitor) {
        var t = this;
  
        // Detach any prior monitor
        if (t.monitor) {
          t.detachMonitor();
        }
  
        // Watch for changes
        t.monitor = monitor;
        t.monitor.on('change', t.onMonitorChange, t);
      }
docs: /*
  Attach a TreeNode monitor to this node in the tree
  
  This watches for changes in the monitor, calling the
  onMonitorChange method when it detects a change in the monitor.
  
  @method attachMonitor
  @param monitor {Monitor} A Monitor to watch for changes on.