Skip to content
This repository was archived by the owner on May 29, 2019. 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
Next Next commit
fix(datepicker): memory leak fix for datepicker.
  • Loading branch information
Ankit Kumar committed Sep 10, 2014
commit 0f8c8b44a736537220c69fea45b36ebfa55441ab
2 changes: 2 additions & 0 deletions src/datepicker/datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,8 @@ function ($compile, $parse, $document, $position, dateFilter, dateParser, datepi
};

var $popup = $compile(popupEl)(scope);
popupEl.remove();

if ( appendToBody ) {
$document.find('body').append($popup);
} else {
Expand Down