Updated preUpdate example in events doc