fix for #240 without language-specific additions
fixed a couple of misfiring events
Merge pull request #254 from waterbearlang/240_lifecycle_events

240 lifecycle events