From 0618710913f41d7a7f4c095f0edda035e65a887d Mon Sep 17 00:00:00 2001 From: jaubourg Date: Wed, 27 Feb 2013 16:12:16 +0100 Subject: Properly resets firingLength when emptying the list. Fixes #13517 --- src/callbacks.js | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/callbacks.js b/src/callbacks.js index 2bb378047..851333114 100644 --- a/src/callbacks.js +++ b/src/callbacks.js @@ -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 -- cgit v1.2.3