Upgrade to ExtJS 3.1.1 - Released 02/08/2010
[extjs.git] / examples / state / SessionProvider.js
1 /*!
2  * Ext JS Library 3.1.1
3  * Copyright(c) 2006-2010 Ext JS, LLC
4  * licensing@extjs.com
5  * http://www.extjs.com/license
6  */
7 Ext.state.SessionProvider = Ext.extend(Ext.state.CookieProvider, {\r
8     readCookies : function(){\r
9         if(this.state){\r
10             for(var k in this.state){\r
11                 if(typeof this.state[k] == 'string'){\r
12                     this.state[k] = this.decodeValue(this.state[k]);\r
13                 }\r
14             }\r
15         }\r
16         return Ext.apply(this.state || {}, Ext.state.SessionProvider.superclass.readCookies.call(this));\r
17     }\r
18 });