Upgrade to ExtJS 3.1.0 - Released 12/16/2009
[extjs.git] / docs / source / CookieProvider.html
index ecf82da..b15acc9 100644 (file)
@@ -1,17 +1,12 @@
-<html>
-<head>
-  <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>
-</head>
-<body  onload="prettyPrint();">
-    <pre class="prettyprint lang-js">/*!
- * Ext JS Library 3.0.3
- * Copyright(c) 2006-2009 Ext JS, LLC
- * licensing@extjs.com
- * http://www.extjs.com/license
- */
-\r
+<html>\r
+<head>\r
+  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />    \r
+  <title>The source code</title>\r
+    <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />\r
+    <script type="text/javascript" src="../resources/prettify/prettify.js"></script>\r
+</head>\r
+<body  onload="prettyPrint();">\r
+    <pre class="prettyprint lang-js">\r
 <div id="cls-Ext.state.CookieProvider"></div>/**\r
  * @class Ext.state.CookieProvider\r
  * @extends Ext.state.Provider\r
@@ -65,13 +60,15 @@ Ext.extend(Ext.state.CookieProvider, Ext.state.Provider, {
 \r
     // private\r
     readCookies : function(){\r
-        var cookies = {};\r
-        var c = document.cookie + ";";\r
-        var re = /\s?(.*?)=(.*?);/g;\r
-       var matches;\r
+        var cookies = {},\r
+            c = document.cookie + ";",\r
+            re = /\s?(.*?)=(.*?);/g,\r
+           matches,\r
+            name, value;\r
+            \r
        while((matches = re.exec(c)) != null){\r
-            var name = matches[1];\r
-            var value = matches[2];\r
+            name = matches[1];\r
+            value = matches[2];\r
             if(name && name.substring(0,3) == "ys-"){\r
                 cookies[name.substr(3)] = this.decodeValue(value);\r
             }\r
@@ -95,6 +92,6 @@ Ext.extend(Ext.state.CookieProvider, Ext.state.Provider, {
            ((this.domain == null) ? "" : ("; domain=" + this.domain)) +\r
            ((this.secure == true) ? "; secure" : "");\r
     }\r
-});</pre>
-</body>
+});</pre>    \r
+</body>\r
 </html>
\ No newline at end of file