Deferred: fix memory leak of promise callbacks

Fixes gh-3606
Closes gh-3657
This commit is contained in:
Jason Bedard 2017-06-19 22:23:24 -07:00 committed by Richard Gibson
parent 80f1c8239e
commit 36389288e8

View File

@ -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
);
}