X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..HEAD:/docs/source/Cookies.html diff --git a/docs/source/Cookies.html b/docs/source/Cookies.html index 6d0e4a02..4371b9c8 100644 --- a/docs/source/Cookies.html +++ b/docs/source/Cookies.html @@ -1,4 +1,21 @@ -Sencha Documentation Project
/**
+
+
+
+  
+  The source code
+  
+  
+  
+  
+
+
+  
/**
  * @class Ext.util.Cookies
 
 Utility class for setting/reading values from browser cookies.
@@ -12,12 +29,12 @@ A cookie can be invalidated on the client machine using the {@link #clear} metho
 Ext.define('Ext.util.Cookies', {
     singleton: true,
     
-    /**
+    /**
      * Create a cookie with the specified name and value. Additional settings
      * for the cookie may be optionally specified (for example: expiration,
      * access restriction, SSL).
      * @param {String} name The name of the cookie to set. 
-     * @param {Mixed} value The value to set for the cookie.
+     * @param {Object} value The value to set for the cookie.
      * @param {Object} expires (Optional) Specify an expiration date the
      * cookie is to persist until.  Note that the specified Date object will
      * be converted to Greenwich Mean Time (GMT). 
@@ -45,7 +62,7 @@ Ext.define('Ext.util.Cookies', {
         document.cookie = name + "=" + escape(value) + ((expires === null) ? "" : ("; expires=" + expires.toGMTString())) + ((path === null) ? "" : ("; path=" + path)) + ((domain === null) ? "" : ("; domain=" + domain)) + ((secure === true) ? "; secure" : "");
     },
 
-    /**
+    /**
      * Retrieves cookies that are accessible by the current page. If a cookie
      * does not exist, <code>get()</code> returns <tt>null</tt>.  The following
      * example retrieves the cookie called "valid" and stores the String value
@@ -54,7 +71,7 @@ Ext.define('Ext.util.Cookies', {
      * var validStatus = Ext.util.Cookies.get("valid");
      * </code></pre>
      * @param {String} name The name of the cookie to get
-     * @return {Mixed} Returns the cookie value for the specified name;
+     * @return {Object} Returns the cookie value for the specified name;
      * null if the cookie name does not exist.
      */
     get : function(name){
@@ -77,7 +94,7 @@ Ext.define('Ext.util.Cookies', {
         return null;
     },
 
-    /**
+    /**
      * Removes a cookie with the provided name from the browser
      * if found by setting its expiration date to sometime in the past. 
      * @param {String} name The name of the cookie to remove
@@ -90,7 +107,7 @@ Ext.define('Ext.util.Cookies', {
         }
     },
     
-    /**
+    /**
      * @private
      */
     getCookieVal : function(offset){
@@ -101,4 +118,6 @@ Ext.define('Ext.util.Cookies', {
         return unescape(document.cookie.substring(offset, endstr));
     }
 });
-
\ No newline at end of file +
+ +