fix how $event and $element are added to model temporarily

fixes an issue when using multiple function calls in a sequence in an
event callback