When you build an URL with the bracket notation (like on Rake), Arg.js evaluates the key as NaN.
Example:
?q[status]=open should be interpreted as { q: { status: "open" } }
The culprit is here !
A possible fix could be parsing the nextSelector:
- if we only identify numbers then we call
parseInt()
- else we build a hash