summaryrefslogtreecommitdiff
path: root/resources/jquery/jquery.delayedBind.js
diff options
context:
space:
mode:
Diffstat (limited to 'resources/jquery/jquery.delayedBind.js')
-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;