fixes #2798
Merge pull request #2800 from gurbuzali/dist-object-destroyed-event/3.2.4

fixes #2798