azicchetti/jquerymobile-router — Issue #18: Documentation error in getParams
Author: marceloverdijk
Created: 2012-01-17 14:11:08+00:00
State: open

The getParams documentation contains:

getParams(hashPartOfTheUrl): Returns an object with the parameters encoded in the url or null if nothing's found. For instance, if you have something like: #detail?id=3&foo=bar and call routerInstance.getParams("?id=3&foo=bar") you'll get: javascript { id: "3", foo: "bar" }

I think

routerInstance.getParams("?id=3&foo=bar")

should be something like:

routerInstance.getParams(match[1])