-<!DOCTYPE html><html><head><title>Sencha Documentation Project</title><link rel="stylesheet" href="../reset.css" type="text/css"><link rel="stylesheet" href="../prettify.css" type="text/css"><link rel="stylesheet" href="../prettify_sa.css" type="text/css"><script type="text/javascript" src="../prettify.js"></script></head><body onload="prettyPrint()"><pre class="prettyprint"><pre><span id='Ext-util.Cookies'>/**
+<!DOCTYPE html>
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title>The source code</title>
+ <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
+ <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
+ <style type="text/css">
+ .highlight { display: block; background-color: #ddd; }
+ </style>
+ <script type="text/javascript">
+ function highlight() {
+ document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
+ }
+ </script>
+</head>
+<body onload="prettyPrint(); highlight();">
+ <pre class="prettyprint lang-js"><span id='Ext-util-Cookies'>/**
</span> * @class Ext.util.Cookies
Utility class for setting/reading values from browser cookies.
Ext.define('Ext.util.Cookies', {
singleton: true,
-<span id='Ext-util.Cookies-method-set'> /**
+<span id='Ext-util-Cookies-method-set'> /**
</span> * 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).
document.cookie = name + "=" + escape(value) + ((expires === null) ? "" : ("; expires=" + expires.toGMTString())) + ((path === null) ? "" : ("; path=" + path)) + ((domain === null) ? "" : ("; domain=" + domain)) + ((secure === true) ? "; secure" : "");
},
-<span id='Ext-util.Cookies-method-get'> /**
+<span id='Ext-util-Cookies-method-get'> /**
</span> * 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
* 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){
return null;
},
-<span id='Ext-util.Cookies-method-clear'> /**
+<span id='Ext-util-Cookies-method-clear'> /**
</span> * 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
}
},
-<span id='Ext-util.Cookies-method-getCookieVal'> /**
+<span id='Ext-util-Cookies-method-getCookieVal'> /**
</span> * @private
*/
getCookieVal : function(offset){
return unescape(document.cookie.substring(offset, endstr));
}
});
-</pre></pre></body></html>
\ No newline at end of file
+</pre>
+</body>
+</html>