make onEvent wamp v1/v2 compatible
cosmetic test whitespace