Commit Graph

8 Commits

Author SHA1 Message Date
NN
8e08af724f Support converter option
My bad, the pull request https://github.com/borisyankov/DefinitelyTyped/pull/3449 was not correct.
When the converter is specified it is used for converting the cookie value.
2015-01-13 12:48:13 +02:00
NN
efd78f5100 Support converter option
jquery.cookie supports converter function in the second argument:

https://github.com/carhartl/jquery-cookie

Example for parsing a value into a number:

$.cookie('foo', '42');
$.cookie('foo', Number); // => 42
2015-01-12 17:26:40 +02:00
yutavsky
f187d0d92b $.cookie() support 2013-09-19 23:21:43 +09:00
Theodore Brown
8439d657c1 bool -> boolean in jquery.cookie 2013-07-21 11:23:38 -05:00
Boris Yankov
209d95071a Update reference paths 2013-01-17 20:03:30 +02:00
Natan Vivo
c7d2934d6d Update project references to use jQuery 1.9 instead of missing 1.8 file. 2013-01-17 12:05:06 -02:00
BreeeZe
f0fef408cf The expires option can be either a number or a Date object. (https://github.com/carhartl/jquery-cookie#expires)
Since there is no option to define both for a property it should be defined as any.
2012-11-27 22:12:28 +01:00
Roy Goode
9093cd686a Added jQuery.Cookie definitions and tests 2012-11-27 20:50:33 +00:00