Skip to content

Commit ecd3408

Browse files
committed
Adding a method description to the _recalculate method
1 parent 51510a9 commit ecd3408

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

components/sidebar/sidebar.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ export default class Sidebar extends Component {
1919
document.removeEventListener('scroll', this._recalculate.bind(this));
2020
}
2121

22+
/**
23+
* Re-calculate fixed state and position
24+
*
25+
*/
2226
_recalculate() {
2327
let { scrollY, innerHeight } = window;
2428
let { scrollHeight } = document.body;

0 commit comments

Comments
 (0)