added hack fix for events not working with angular 1.3 from brocksamson