Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Cookie unexpected converssion

#482

This is part of my code. I store string value but get it as number

value = "item4";
id = value.substring(4);
alert(typeof(id)); // string
Cookie.set('item',id,{'path':'/'});
.
.
.
id = Cookie.get('item');
alert(typeof(id)); // number

a part from documentation:

Cookie.get(String name) -> String value or null

Is it bug or documentation error?

Reported by ruslan · August 14th, 2012 @ 01:18 PM

State: new
Milestone: none
Assigned to: nobody

Activity

No comments yet.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.