Fixed Foundation event binding issue for offcanvas