added call to attachDefaultListeners if method has been defined
Merge pull request #4864 from sarge-ch/event-trait-enhancement

enhancement of ProvidesEvents trait
Merge branch 'feature/4864' into develop

Close #4864