Properly resets firingLength when emptying the list. Fixes #13517

This commit is contained in:
jaubourg
2013-02-27 16:12:16 +01:00
parent 1b6be73721
commit 0618710913
2 changed files with 17 additions and 0 deletions

View File

@@ -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