-
23 Mar 2011 3:35 PM #1
[OPEN-EXTJSIV-294] multiple 'var' from set and get functions in Ext.util.Cookies
[OPEN-EXTJSIV-294] multiple 'var' from set and get functions in Ext.util.Cookies
It is possible to remove several 'var' decelerations to shorten the functions.
Example:
Code:set : function(name, value){ var argv = arguments, argc = arguments.length, expires = (argc > 2) ? argv[2] : null, path = (argc > 3) ? argv[3] : '/', domain = (argc > 4) ? argv[4] : null, secure = (argc > 5) ? argv[5] : false; document.cookie = name + "=" + escape(value) + ((expires === null) ? "" : ("; expires=" + expires.toGMTString())) + ((path === null) ? "" : ("; path=" + path)) + ((domain === null) ? "" : ("; domain=" + domain)) + ((secure === true) ? "; secure" : ""); },
You found a bug! We've classified it as
a bug in our system.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
Similar Threads
-
[OPEN-1492] The Ext.util.Cookies.clear call does not work.
By VladDidenko in forum Ext 3.x: BugsReplies: 2Last Post: 9 Jan 2011, 1:45 PM -
Ext.util.Cookies.set() && .NET's HttpCookie.Values
By Ex_Soft in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 10 Dec 2010, 6:20 AM -
[CLOSED] Ext.util.Cookies.clear() not working
By dorgan in forum Ext 3.x: BugsReplies: 8Last Post: 20 May 2010, 8:17 AM -
[CLOSED][3.??] Ext.util.Cookies.clear is Invalid
By 3gwind in forum Ext 3.x: BugsReplies: 2Last Post: 28 Apr 2010, 8:29 AM -
[CLOSED][3.??] Ext.util.Cookies.clear does not work
By Chods in forum Ext 3.x: BugsReplies: 4Last Post: 16 Feb 2010, 11:01 AM


Reply With Quote