added opt_remove_only_element_listeners flag to removeAllEventListeners