Fixed so custom events works as it should in IE8.
Comment fixes