Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix for bug #12874. Tested succesfully with r.js version 2.0.2
  • Loading branch information
eeroan committed Nov 13, 2012
1 parent 48bd8b5 commit d7ca9e7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/callbacks.js
Expand Up @@ -90,7 +90,7 @@ jQuery.Callbacks = function( options ) {
if ( list ) {
// First, we save the current length
var start = list.length;
(function add( args ) {
function add( args ) {
jQuery.each( args, function( _, arg ) {
var type = jQuery.type( arg );
if ( type === "function" ) {
Expand All @@ -102,7 +102,8 @@ jQuery.Callbacks = function( options ) {
add( arg );
}
});
})( arguments );
}
add( arguments );
// Do we need to add the callbacks to the
// current firing batch?
if ( firing ) {
Expand Down

0 comments on commit d7ca9e7

Please sign in to comment.