diff options
Diffstat (limited to 'src/callbacks.js')
-rw-r--r-- | src/callbacks.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/callbacks.js b/src/callbacks.js index 30fa1a30f..55a9d719d 100644 --- a/src/callbacks.js +++ b/src/callbacks.js @@ -151,8 +151,10 @@ jQuery.Callbacks = function( options ) { }, // Remove all callbacks from the list empty: function() { - list = []; - firingLength = 0; + if ( list ) { + list = []; + firingLength = 0; + } return this; }, // Have the list do nothing anymore |