Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistency in value returns #40

Open
kkufieta opened this issue Jun 7, 2017 · 3 comments
Open

Inconsistency in value returns #40

kkufieta opened this issue Jun 7, 2017 · 3 comments

Comments

@kkufieta
Copy link

kkufieta commented Jun 7, 2017

I would set the hash with e.g.
window.location.hash = Arg.stringify({workid: 12345});

which returns

location.href
"https://som.hex21.com/katya/version_01/#workid=12345"

But with Arg I get very inconsistent results which I can't figure out why:

Arg.all()
{"": undefined, workid: 198582}

Arg.hash()
{workid: 70761}

Arg('workid')
198582

Any ideas why?

I guess I can work with this for now:

Arg.parse(location.hash)
{workid: 12345}
@ValentinTrinque
Copy link
Contributor

I'll look into that.

BTW, this library required a major code base update...

@ValentinTrinque
Copy link
Contributor

ValentinTrinque commented Jun 7, 2017

Can you tell which version you are using ? And which browser + version ?

@ValentinTrinque
Copy link
Contributor

I have trouble reproducing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants