#482 new

Cookie unexpected converssion

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

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
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?

No comments found

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

RightJS Core Tickets

Shared Ticket Bins

People watching this ticket