Skip to content

Commit

Permalink
Complete jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwoodnz committed Jan 30, 2024
1 parent 0b9b873 commit 17d0add
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mu-plugins/blocks/sidebar-container/src/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ function getCustomPropValue( name, element = document.body ) {
* and toggle the "fixed" class at a certain point.
* Reduce the height of the sidebar to stop it overlapping the footer.
*
* @param {HTMLElement} container
* @param {HTMLElement} container The sidebar container.
* @return {Function} onScroll The sidebar scroll handler.
*/
function createScrollHandler( container ) {
return function onScroll() {
Expand Down Expand Up @@ -67,7 +68,7 @@ function createScrollHandler( container ) {

/**
* Set the height for the admin bar and global nav vars.
* Set the floating sidebar class on each container based on their breakpoint.
* Set the floating sidebar class on each container based on its breakpoint.
* Show hidden containers after layout.
*/
function onResize() {
Expand Down

0 comments on commit 17d0add

Please sign in to comment.