diff options
-rw-r--r-- | misc/form.js | 4 | ||||
-rw-r--r-- | misc/vertical-tabs.js | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/misc/form.js b/misc/form.js index 9f916c345..a59451760 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 9d6bc6f95..7fb15549f 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'); }; |