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