From 15a7ec5a4e58133bb3bdcf62892001b1cad53b3b Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 25 Aug 2009 13:30:54 +0000 Subject: [PATCH] - Patch #558656 by Davy Van Den Brempt: this that self. --- misc/form.js | 4 ++-- misc/vertical-tabs.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/misc/form.js b/misc/form.js index 9f916c3455b..a59451760ce 100644 --- a/misc/form.js +++ b/misc/form.js @@ -17,7 +17,7 @@ $.fn.getSummary = function () { * retrieved or a string (which is returned each time). */ $.fn.setSummary = function (callback) { - var that = this; + var self = this; // To facilitate things, the callback should always be a function. If it's // not, we wrap it into an anonymous function which just returns the value. @@ -32,7 +32,7 @@ $.fn.setSummary = function (callback) { // (re-)added. .unbind('formUpdated.summary') .bind('formUpdated.summary', function () { - that.trigger('summaryUpdated'); + self.trigger('summaryUpdated'); }) // The actual summaryUpdated handler doesn't fire when the callback is // changed, so we have to do this manually. diff --git a/misc/vertical-tabs.js b/misc/vertical-tabs.js index 9d6bc6f957b..7fb15549f5a 100644 --- a/misc/vertical-tabs.js +++ b/misc/vertical-tabs.js @@ -55,17 +55,17 @@ Drupal.behaviors.verticalTabs = { * - fieldset: The jQuery object of the fieldset that is the tab pane. */ Drupal.verticalTab = function (settings) { - var that = this; + var self = this; $.extend(this, settings, Drupal.theme('verticalTab', settings)); this.link.click(function () { - that.focus(); + self.focus(); return false; }); this.fieldset .bind('summaryUpdated', function () { - that.updateSummary(); + self.updateSummary(); }) .trigger('summaryUpdated'); };