Skip to content

Commit

Permalink
Requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeos authored Jan 14, 2022
1 parent c5d96b7 commit 656b420
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/zeynep.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
!zeynep.hasClass('submenu-opened') && zeynep.addClass('submenu-opened')

// scroll to top before submenu transition
zeynep.get(0).scrollTo(0, 0)
zeynep[0].scrollTo({top: 0})

eventController('opened', eventDetails)
})
Expand All @@ -71,11 +71,11 @@

// close subMenu
subMenuEl.removeClass('opened current')
zeynep.find('.submenu.opened:last-child').addClass('current')
zeynep.find('.submenu.opened').last().addClass('current')
!zeynep.find('.submenu.opened').length && zeynep.removeClass('submenu-opened')

// scroll to top between submenu transitions
subMenuEl.get(0).scrollTo(0, 0)
subMenuEl[0].scrollTo({top: 0})

eventController('closed', eventDetails)
})
Expand Down Expand Up @@ -184,4 +184,4 @@

return instance
}
})(window.jQuery, 'zeynep')
})(window.jQuery || window.cash, 'zeynep')

0 comments on commit 656b420

Please sign in to comment.