summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2012-02-14 13:54:16 -0500
committerwebchick <webchick@24967.no-reply.drupal.org>2012-02-14 13:54:16 -0500
commit52b6df5b729dd53668de21776f879cc6d4ee22d3 (patch)
tree625a915aab8ae6042952fc05cc81420ef098cdc1 /misc
parent92fca531f11dde34ed5c3e4538d5559e338adfbf (diff)
downloadbrdo-52b6df5b729dd53668de21776f879cc6d4ee22d3.tar.gz
brdo-52b6df5b729dd53668de21776f879cc6d4ee22d3.tar.bz2
Issue #1414824 by nod_: Fixed Leaking vars in tabledrag.js.
Diffstat (limited to 'misc')
-rw-r--r--misc/tabledrag.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/misc/tabledrag.js b/misc/tabledrag.js
index 0461491f2..4d4edfbd0 100644
--- a/misc/tabledrag.js
+++ b/misc/tabledrag.js
@@ -402,12 +402,12 @@ Drupal.tableDrag.prototype.makeDraggable = function (item) {
if ($(item).is('.tabledrag-root')) {
// Swap with the next group (necessarily a top-level one).
var groupHeight = 0;
- nextGroup = new self.row(nextRow, 'keyboard', self.indentEnabled, self.maxDepth, false);
+ var nextGroup = new self.row(nextRow, 'keyboard', self.indentEnabled, self.maxDepth, false);
if (nextGroup) {
$(nextGroup.group).each(function () {
groupHeight += $(this).is(':hidden') ? 0 : this.offsetHeight;
});
- nextGroupRow = $(nextGroup.group).filter(':last').get(0);
+ var nextGroupRow = $(nextGroup.group).filter(':last').get(0);
self.rowObject.swap('after', nextGroupRow);
// No need to check for indentation, 0 is the only valid one.
window.scrollBy(0, parseInt(groupHeight, 10));
@@ -1042,8 +1042,8 @@ Drupal.tableDrag.prototype.row.prototype.validIndentInterval = function (prevRow
Drupal.tableDrag.prototype.row.prototype.indent = function (indentDiff) {
// Determine the valid indentations interval if not available yet.
if (!this.interval) {
- prevRow = $(this.element).prev('tr').get(0);
- nextRow = $(this.group).filter(':last').next('tr').get(0);
+ var prevRow = $(this.element).prev('tr').get(0);
+ var nextRow = $(this.group).filter(':last').next('tr').get(0);
this.interval = this.validIndentInterval(prevRow, nextRow);
}