Updated preUpdate example in events doc

Documentation update for #810