summaryrefslogtreecommitdiff
path: root/resources/jquery
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2012-01-12 13:42:29 +0100
committerPierre Schmitz <pierre@archlinux.de>2012-01-12 13:42:29 +0100
commitba0fc4fa20067528effd4802e53ceeb959640825 (patch)
tree4f62217349d3afa39dbba3f7e19dac0aecb344f6 /resources/jquery
parentca32f08966f1b51fcb19460f0996bb0c4048e6fe (diff)
Update to MediaWiki 1.18.1
Diffstat (limited to 'resources/jquery')
-rw-r--r--resources/jquery/jquery.delayedBind.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/resources/jquery/jquery.delayedBind.js b/resources/jquery/jquery.delayedBind.js
index 6d972996..d84ee267 100644
--- a/resources/jquery/jquery.delayedBind.js
+++ b/resources/jquery/jquery.delayedBind.js
@@ -19,6 +19,11 @@ $.fn.extend( {
* @param callback Function to call
*/
delayedBind: function( timeout, event, data, callback ) {
+ if ( arguments.length == 3 ) {
+ // Shift optional parameter down
+ callback = data;
+ data = undefined;
+ }
var encEvent = encodeEvent( event );
return this.each( function() {
var that = this;