Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit d7ca9e7f4a89a7e47c8e0bb2a8ed0e4d7c96a6a1 1 parent 48bd8b5
@eeroan eeroan authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/callbacks.js
View
5 src/callbacks.js
@@ -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 ) {
Please sign in to comment.
Something went wrong with that request. Please try again.