fix events for Brackets 0.44 API change