Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! fix($animate): avoid memory leak with `$animate.enabled(elemen…
…t, enabled)`
  • Loading branch information
gkalpak committed Jul 27, 2018
commit d13fbf36872c08b84d24eea1a4101f0c9f745f8f
2 changes: 1 addition & 1 deletion src/ngAnimate/animateQueue.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ var $$AnimateQueueProvider = ['$animateProvider', /** @this */ function($animate
if (!disabledElementsLookup.has(node)) {
// The element is added to the map for the first time.
// Create a listener to remove it on `$destroy` (to avoid memory leak).
$$jqLite(element).on('$destroy', removeFromDisabledElementsLookup);
jqLite(element).on('$destroy', removeFromDisabledElementsLookup);
}
disabledElementsLookup.set(node, !bool);
}
Expand Down