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 ) {
4848 stack = [ ] ,
4949 // Last fire value (for non-forgettable lists)
5050 memory ,
51+ // Flag to know if list was already fired
52+ fired ,
5153 // Flag to know if list is currently firing
5254 firing ,
5355 // First callback to fire (used internally by add and fireWith)
@@ -81,6 +83,7 @@ jQuery.Callbacks = function( flags ) {
8183 fire = function ( context , args ) {
8284 args = args || [ ] ;
8385 memory = ! flags . memory || [ context , args ] ;
86+ fired = true ;
8487 firing = true ;
8588 firingIndex = firingStart || 0 ;
8689 firingStart = 0 ;
@@ -216,7 +219,7 @@ jQuery.Callbacks = function( flags ) {
216219 } ,
217220 // To know if the callbacks have already been called at least once
218221 fired : function ( ) {
219- return ! ! memory ;
222+ return ! ! fired ;
220223 }
221224 } ;
222225
You can’t perform that action at this time.
0 commit comments