Fixed LocalEvent.type for IE7- support