mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 05:36:29 +08:00
64438fff25
The problem:
Removing the options to addEventListener results in events that are properly cleaned up when the search menu is removed. Previously every time you opened the search menu, the listeners would be attached again, and clicking outside even after it was closed would fire the function again and again (N times as you opened the search menu!)
This was made far far worse in this commit
|
||
---|---|---|
.. | ||
images | ||
javascripts | ||
stylesheets |