byennen / one

0 stars 1 forks source link

Uncaught TypeError: Cannot read property '0' of undefined navbar_client.js:22 #92

Closed byennen closed 9 years ago

byennen commented 9 years ago

@DaveSauce can you look at the console and fix this issue with this code?

'click #navbar-logo': function () {
    // expands the main dialog box to 80% of full screen
    $.Velocity.hook($('#communication-main'), "width", "0");
    $.Velocity.hook($('#communication-message-board'), "width", "0");
    $.Velocity.hook($('#communication-task-board'), "width", "0");
    $.Velocity.hook($('#communication-library-board'), "width", "0");
        // un-lock scroll position
        var body = $('body');
        var scrollPosition = body.data('scroll-position');
        body.css('overflow', body.data('previous-overflow'));
     window.scrollTo(scrollPosition[0], scrollPosition[1]);
}

it looks like scrollPosition is not defined in the body at some point?

screen shot 2015-02-12 at 10 29 10 am

byennen commented 9 years ago

@DaveSauce ty!