Permalink
Browse files

Fix for bug #12874. Tested succesfully with r.js version 2.0.2

  • Loading branch information...
1 parent 48bd8b5 commit d7ca9e7f4a89a7e47c8e0bb2a8ed0e4d7c96a6a1 @eeroan eeroan committed Nov 13, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/callbacks.js
View
@@ -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" ) {
@@ -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 ) {

0 comments on commit d7ca9e7

Please sign in to comment.