jamesddavies / lit-route

A client-side router for lit-html applications.
8 stars 2 forks source link

Route Exists Short Circuit #3

Closed zksward closed 5 years ago

zksward commented 5 years ago

Removed unnecessary path parameter and changed to Array.prototype.some for short-circuiting behavior. An alternative to this change would be to add a parameter to Route.match that takes a path (the default is location.pathname).