onlyurei/knockout-spa

Page error statusCode empty

Billybob opened this issue · 1 comments

Hi, when page notfound, the statusCode is empty!

work with:

routes[key] = function () {
    Page.loading = true;
    var args = Array.prototype.slice.call(arguments, 0);
    var controller = controllerName ? function (page) {
        page.controllers[controllerName].apply(page, args);
    } : null;
    initPage(pageModulePath, controller);
};

@Billybob good catch, thanks!