File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,8 @@ jQuery.Callbacks = function( flags ) {
48
48
stack = [ ] ,
49
49
// Last fire value (for non-forgettable lists)
50
50
memory ,
51
+ // Flag to know if list was already fired
52
+ fired ,
51
53
// Flag to know if list is currently firing
52
54
firing ,
53
55
// First callback to fire (used internally by add and fireWith)
@@ -81,6 +83,7 @@ jQuery.Callbacks = function( flags ) {
81
83
fire = function ( context , args ) {
82
84
args = args || [ ] ;
83
85
memory = ! flags . memory || [ context , args ] ;
86
+ fired = true ;
84
87
firing = true ;
85
88
firingIndex = firingStart || 0 ;
86
89
firingStart = 0 ;
@@ -216,7 +219,7 @@ jQuery.Callbacks = function( flags ) {
216
219
} ,
217
220
// To know if the callbacks have already been called at least once
218
221
fired : function ( ) {
219
- return ! ! memory ;
222
+ return ! ! fired ;
220
223
}
221
224
} ;
222
225
You can’t perform that action at this time.
0 commit comments