code: function (evt) {
          if (this.started && OpenLayers.Util.mouseLeft(evt, this.map.viewPortDiv)) {
              if(this.documentDrag === true) {
                  this.addDocumentEvents();
              } else {
                  var dragged = (this.start != this.last);
                  this.started = false; 
                  this.dragging = false;
                  OpenLayers.Element.removeClass(
                      this.map.viewPortDiv, "olDragDown"
                  );
                  this.out(evt);
                  this.callback("out", []);
                  if(dragged) {
                      this.callback("done", [evt.xy]);
                  }
                  if(document.onselectstart) {
                      document.onselectstart = this.oldOnselectstart;
                  }
              }
          }
          return true;
      }
docs: Method: mouseout
  Handle mouseout events
  
  Parameters:
  evt - {Event}
  
  Returns:
  {Boolean} Let the event propagate.