rem: Drupal.tableDrag.prototype.dragRow = function(event) { var self = event.data.tableDrag;  
add: Drupal.tableDrag.prototype.dragRow = function(event, self) { 
context: Drupal.tableDrag.prototype.dragRow = function(event) {  var self = event.data.tableDrag;  if (self.dragObject) {    self.currentMouseCoords = self.mouseCoords(event);    var y = self.currentMouseCoords.y - self.dragObject.initMouseOffset.y;    var x = self.currentMouseCoords.x - self.dragObject.initMouseOffset.x;    // Check for row swapping and vertical scrolling.    if (y != self.oldY) {      self.rowObject.direction = y > self.oldY ? 'down' : 'up';      self.oldY = y; // Update the old value.      // Check if the window should be scrolled (and how fast).      var scrollAmount = self.checkScroll(self.currentMouseCoords.y);      // Stop any current scrolling.      clearInterval(self.scrollInterval);      // Continue scrolling if the mouse has moved in the scroll direction.      if (scrollAmount > 0 && self.rowObject.direction == 'down' || scrollAmount < 0 && self.rowObject.direction == 'up') {        self.setScroll(scrollAmount);      }      // If we have a valid target, perform the swap and restripe the table.      var currentRow = self.findDropTargetRow(x, y);      if (currentRow) {        if (self.rowObject.direction == 'down') {          self.rowObject.swap('after', currentRow, self);        }        else {          self.rowObject.swap('before', currentRow, self);        }        self.restripeTable();      }    }    // Similar to row swapping, handle indentations.    if (self.indentEnabled && x != self.oldX) {      self.oldX = x;      var xDiff = self.currentMouseCoords.x - self.dragObject.indentMousePos.x;      // Set the number of indentations the mouse has been moved left or right.      var indentDiff = parseInt(xDiff / self.indentAmount);      // Limit the indentation to no less than the left edge of the table and no      // more than the total amount of indentation in the table.      indentDiff = indentDiff > 0 ? Math.min(indentDiff, self.indentCount - self.rowObject.indents + 1) : Math.max(indentDiff, -self.rowObject.indents);      if (indentDiff != 0) {        // Indent the row with our estimated diff, which may be further        // restricted according to the rows around this row.        var indentChange = self.rowObject.indent(indentDiff);        // Update table and mouse indentations.        self.dragObject.indentMousePos.x += self.indentAmount * indentChange;        self.indentCount = Math.max(self.indentCount, self.rowObject.indents);      }    }    return false;  }};
meta: 6801	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6801/1f299b52e0571d01cd9b15ae53ec60ca099c18fa/tabledrag.js/clean/misc/tabledrag.js