-Ext.state.CookieProvider = function(config){
- Ext.state.CookieProvider.superclass.constructor.call(this);
- this.path = "/";
- this.expires = new Date(new Date().getTime()+(1000*60*60*24*7)); //7 days
- this.domain = null;
- this.secure = false;
- Ext.apply(this, config);
- this.state = this.readCookies();
-};
+Ext.define('Ext.state.CookieProvider', {
+ extend: 'Ext.state.Provider',
+
+<span id='Ext-state-CookieProvider-cfg-path'> /**
+</span> * @cfg {String} path
+ * The path for which the cookie is active. Defaults to root '/' which makes it active for all pages in the site.
+ */
+
+<span id='Ext-state-CookieProvider-cfg-expires'> /**
+</span> * @cfg {Date} expires
+ * The cookie expiration date. Defaults to 7 days from now.
+ */
+
+<span id='Ext-state-CookieProvider-cfg-domain'> /**
+</span> * @cfg {String} domain
+ * The domain to save the cookie for. Note that you cannot specify a different domain than your page is on, but you can
+ * specify a sub-domain, or simply the domain itself like 'sencha.com' to include all sub-domains if you need to access
+ * cookies across different sub-domains. Defaults to null which uses the same domain the page is running on including
+ * the 'www' like 'www.sencha.com'.
+ */
+
+<span id='Ext-state-CookieProvider-cfg-secure'> /**
+</span> * @cfg {Boolean} [secure=false]
+ * True if the site is using SSL
+ */
+
+<span id='Ext-state-CookieProvider-method-constructor'> /**
+</span> * Creates a new CookieProvider.
+ * @param {Object} [config] Config object.
+ */
+ constructor : function(config){
+ var me = this;
+ me.path = "/";
+ me.expires = new Date(new Date().getTime()+(1000*60*60*24*7)); //7 days
+ me.domain = null;
+ me.secure = false;
+ me.callParent(arguments);
+ me.state = me.readCookies();
+ },