diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2012-01-12 13:42:29 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2012-01-12 13:42:29 +0100 |
commit | ba0fc4fa20067528effd4802e53ceeb959640825 (patch) | |
tree | 4f62217349d3afa39dbba3f7e19dac0aecb344f6 /resources/jquery | |
parent | ca32f08966f1b51fcb19460f0996bb0c4048e6fe (diff) |
Update to MediaWiki 1.18.1
Diffstat (limited to 'resources/jquery')
-rw-r--r-- | resources/jquery/jquery.delayedBind.js | 5 |
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; |