diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-08-25 13:30:54 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-08-25 13:30:54 +0000 |
commit | 15a7ec5a4e58133bb3bdcf62892001b1cad53b3b (patch) | |
tree | 29802a84d61c027b80ff96e32af003270505d701 /misc/form.js | |
parent | 75722e4f198bacae019fcf852c3f358b18a45e5c (diff) | |
download | brdo-15a7ec5a4e58133bb3bdcf62892001b1cad53b3b.tar.gz brdo-15a7ec5a4e58133bb3bdcf62892001b1cad53b3b.tar.bz2 |
- Patch #558656 by Davy Van Den Brempt: this that self.
Diffstat (limited to 'misc/form.js')
-rw-r--r-- | misc/form.js | 4 |
1 files changed, 2 insertions, 2 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. |