Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 08c150e

Browse files
Ankit Kumarchrisirhc
Ankit Kumar
authored andcommitted
fix(datepicker): memory leak fix for datepicker
Fixes #2658 Closes #2684
1 parent b75f7af commit 08c150e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/datepicker/datepicker.js

+3
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,9 @@ function ($compile, $parse, $document, $position, dateFilter, dateParser, datepi
605605
};
606606

607607
var $popup = $compile(popupEl)(scope);
608+
// Prevent jQuery cache memory leak (template is now redundant after linking)
609+
popupEl.remove();
610+
608611
if ( appendToBody ) {
609612
$document.find('body').append($popup);
610613
} else {

0 commit comments

Comments
 (0)