The implementation of `onPageScroll` assumes this view has been rendered e.g. `if @ui.navbar.hasClass`, but the event binding occurs during initialization. Views are lazily rendered (only when they are first viewed) so this is throwing and exception in the console. The handler could check if the view is rendered and return early if not. Marionette views have an `isClosed` flag that is false when the view is rendered.