aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/callbacks.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/callbacks.js b/src/callbacks.js
index b032c8f1c..651656964 100644
--- a/src/callbacks.js
+++ b/src/callbacks.js
@@ -190,9 +190,9 @@ jQuery.Callbacks = function( options ) {
// Also disable .add unless we have memory (since it would have no effect)
// Abort any pending executions
lock: function() {
- locked = queue = [];
- if ( !memory && !firing ) {
- list = memory = "";
+ locked = true;
+ if ( !memory ) {
+ self.disable();
}
return this;
},