Removed haseventlistener, fixes #45.