mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Deferred: fix memory leak of promise callbacks
Fixes gh-3606 Closes gh-3657
This commit is contained in:
parent
80f1c8239e
commit
36389288e8
@ -301,8 +301,15 @@ jQuery.extend( {
|
||||
// fulfilled_callbacks.disable
|
||||
tuples[ 3 - i ][ 2 ].disable,
|
||||
|
||||
// rejected_handlers.disable
|
||||
// fulfilled_handlers.disable
|
||||
tuples[ 3 - i ][ 3 ].disable,
|
||||
|
||||
// progress_callbacks.lock
|
||||
tuples[ 0 ][ 2 ].lock
|
||||
tuples[ 0 ][ 2 ].lock,
|
||||
|
||||
// progress_handlers.lock
|
||||
tuples[ 0 ][ 3 ].lock
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user