Upgrade to ExtJS 3.1.1 - Released 02/08/2010
[extjs.git] / docs / source / CookieProvider.html
index b15acc9..0200784 100644 (file)
@@ -60,15 +60,13 @@ Ext.extend(Ext.state.CookieProvider, Ext.state.Provider, {
 \r
     // private\r
     readCookies : function(){\r
-        var cookies = {},\r
-            c = document.cookie + ";",\r
-            re = /\s?(.*?)=(.*?);/g,\r
-           matches,\r
-            name, value;\r
-            \r
+        var cookies = {};\r
+        var c = document.cookie + ";";\r
+        var re = /\s?(.*?)=(.*?);/g;\r
+       var matches;\r
        while((matches = re.exec(c)) != null){\r
-            name = matches[1];\r
-            value = matches[2];\r
+            var name = matches[1];\r
+            var value = matches[2];\r
             if(name && name.substring(0,3) == "ys-"){\r
                 cookies[name.substr(3)] = this.decodeValue(value);\r
             }\r