Differentiate between model and DOM events