[TIDOC-1125](3_1_X) Fix jsduck generator to add deprecation field for events