prevent infinite loop in certain conditions, formal declaration of xw.View.afterRender event