From 81bea17aefb26859f825b9293c7c99192874806e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 8 Nov 2011 20:40:44 +0400 Subject: upgrade Dojo to 1.6.1 --- lib/dojo/cookie.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'lib/dojo/cookie.js') diff --git a/lib/dojo/cookie.js b/lib/dojo/cookie.js index 67d2cdc6a..32d2718d9 100644 --- a/lib/dojo/cookie.js +++ b/lib/dojo/cookie.js @@ -1,5 +1,5 @@ /* - Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved. + Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ @@ -8,9 +8,9 @@ if(!dojo._hasResource["dojo.cookie"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. dojo._hasResource["dojo.cookie"] = true; dojo.provide("dojo.cookie"); - dojo.require("dojo.regexp"); + /*===== dojo.__cookieProps = function(){ // expires: Date|String|Number? @@ -33,7 +33,7 @@ dojo.__cookieProps = function(){ dojo.cookie = function(/*String*/name, /*String?*/value, /*dojo.__cookieProps?*/props){ - // summary: + // summary: // Get or set a cookie. // description: // If one argument is passed, returns the value of the cookie @@ -42,17 +42,17 @@ dojo.cookie = function(/*String*/name, /*String?*/value, /*dojo.__cookieProps?*/ // Name of the cookie // value: // Value for the cookie - // props: + // props: // Properties for the cookie // example: // set a cookie with the JSON-serialized contents of an object which // will expire 5 days from now: // | dojo.cookie("configObj", dojo.toJson(config), { expires: 5 }); - // + // // example: // de-serialize a cookie back into a JavaScript object: // | var config = dojo.fromJson(dojo.cookie("configObj")); - // + // // example: // delete a cookie: // | dojo.cookie("configObj", null, {expires: -1}); @@ -64,7 +64,7 @@ dojo.cookie = function(/*String*/name, /*String?*/value, /*dojo.__cookieProps?*/ props = props || {}; // FIXME: expires=0 seems to disappear right away, not on close? (FF3) Change docs? var exp = props.expires; - if(typeof exp == "number"){ + if(typeof exp == "number"){ var d = new Date(); d.setTime(d.getTime() + exp*24*60*60*1000); exp = props.expires = d; @@ -85,7 +85,7 @@ dojo.cookie = function(/*String*/name, /*String?*/value, /*dojo.__cookieProps?*/ dojo.cookie.isSupported = function(){ // summary: // Use to determine if the current browser supports cookies or not. - // + // // Returns true if user allows cookies. // Returns false if user doesn't allow cookies. -- cgit v1.2.3