codef0rmer / angular-dragdrop

Implementing jQueryUI Drag and Drop functionality in AngularJS (with Animation) is easier than ever
http://codef0rmer.github.com/angular-dragdrop/#/
MIT License
1.78k stars 574 forks source link

Fix memory leak Issue : jqyouiDraggable, jqyouiDroppable $destroy event is not triggered #328

Open mskang9 opened 7 years ago

mskang9 commented 7 years ago

$destroy event is not triggered when angular view is destroyed because “element” is jQuery object. So, it cause memory leak. Changed to listen $destroy event on “elem” that is angular element Then, $destroy event is triggered when angular view is destroyed.