mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Properly resets firingLength when emptying the list. Fixes #13517
This commit is contained in:
@@ -145,6 +145,7 @@ jQuery.Callbacks = function( options ) {
|
||||
// Remove all callbacks from the list
|
||||
empty: function() {
|
||||
list = [];
|
||||
firingLength = 0;
|
||||
return this;
|
||||
},
|
||||
// Have the list do nothing anymore
|
||||
|
||||
Reference in New Issue
Block a user