diff options
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; |