mirror of
https://github.com/moodle/moodle.git
synced 2025-04-19 07:25:30 +02:00
When autocompletes are removed from the DOM, they need to be properly cleaned up or their event handlers may get duplicated when they are re-added to the page. JQuery empty() handles this very nicely.