d4f / backbone-highway

Routing Backbone with style \o/
MIT License
19 stars 5 forks source link

404 controller not working anymore #38

Closed ghost closed 7 years ago

ghost commented 7 years ago

Calling an inexisting url throws an error in url-composer.

Seen when executing the demo script.

url-composer.js:308 Uncaught TypeError: Cannot read property 'match' of null
    at getParamsMatch (url-composer.js:308)
    at Object.paramsArray2Object [as params] (url-composer.js:422)
    at actionWrapper (backbone-highway.js:236)
    at Route.execute (backbone-highway.js:218)
    at error404 (backbone-highway.js:312)
    at Object.start (backbone-highway.js:335)
    at Object.<anonymous> (index.js:62)
    at __webpack_require__ (bootstrap 287c1d3…:657)
    at fn (bootstrap 287c1d3…:85)
    at Object.<anonymous> (log-apply-result.js:30)