Moved open/close event firing to openMenu/closeMenu

I still think it should be moved from its original position for the reasons I mentioned before. But if it's in open() and close(), the events aren't fired after opening/closing the menu with a swipe. Moving it to openMenu/closeMenu fixes this.