fix ie8 custom event

IE8/7/6 don't dispatch custom events so we have to dispatch them manually