Simple fix to make easier custom html element creation

fix for avoid type missmatch in case of overload events and properties functions.