Skip to content

Is README.md correct for defining handler lookup function? #264

Open
@efunneko

Description

@efunneko

The README.md file says:

  router.getHandler = function(name) {
    return myHandlers[name];
  };

This doesn't seem to do anything, but having dug into the library it seems to error on this.router.getRoute() not being defined. Should the README.md say that router.getRoute needs to be set instead?

With that said, I did change my code to set getRoute, which did stop the error, but my handler is still not being called. Is there a working example anywhere that I could follow?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions