PDA

View Full Version : [CLOSED][3.??] Ext.util.Cookies.clear is Invalid



3gwind
2 Dec 2009, 3:28 AM
I input follow code on the firefox's firebug


var cookie = new Ext.state.CookieProvider();
cookie.set('maVariable', 429);
console.log(cookie.get('maVariable'));
cookie.clear('maVariable');
console.log(cookie.get('maVariable'));
console.log('---------------------');

Ext.util.Cookies.set('name','simple');
console.log(Ext.util.Cookies.get('name'));
Ext.util.Cookies.clear('name');
console.log(Ext.util.Cookies.get('name'));


and the result:


429
undefined
---------------------
simple
simple


so I think this is a bug!

3gwind
3 Dec 2009, 9:51 PM
delete this article please if that's not a bug! thanks!
but it's not work when i use ,that's real

dorgan
28 Apr 2010, 8:29 AM
I've ran into this as well and created a bug report: http://www.extjs.com/forum/showthread.php?98070-Ext.util.Cookies.clear()-not-working&p=462560#post462560