\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