added local var for event

fixed bug with super.superfunction()