fixes #2798
Merge pull request #2799 from gurbuzali/dist-object-destroyed-event/3.3

fixes #2798