You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by sc...@apache.org on 2006/02/18 18:01:17 UTC
svn commit: r378740 -
/myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/tree2/resource/javascript/cookielib.js
Author: schof
Date: Sat Feb 18 09:01:15 2006
New Revision: 378740
URL: http://svn.apache.org/viewcvs?rev=378740&view=rev
Log:
Fixes MYFACES-783
Modified:
myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/tree2/resource/javascript/cookielib.js
Modified: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/tree2/resource/javascript/cookielib.js
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/tree2/resource/javascript/cookielib.js?rev=378740&r1=378739&r2=378740&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/tree2/resource/javascript/cookielib.js (original)
+++ myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/tree2/resource/javascript/cookielib.js Sat Feb 18 09:01:15 2006
@@ -77,7 +77,7 @@
{
var attribMap = new Array();
var cookie = CookieLib.getRawCookie(cookieName);
- if (cookie != undefined && cookie != null)
+ if (typeof( cookie ) != "undefined" && cookie != null)
{
var attribArray = cookie.split(CookieLib.ATTRIB_DELIM);
for (var i=0;i<attribArray.length;i++)
@@ -103,7 +103,8 @@
for (var name in attribMap)
{
var value = attribMap[name];
- if (value != undefined && value != null && value != "" && typeof(value) != "function")
+
+ if (typeof( value ) != "undefined" && value != null && value != "" && typeof(value) != "function")
{
if (name.indexOf(CookieLib.ATTRIB_KEYVAL) < 0 && value.indexOf(CookieLib.ATTRIB_KEYVAL) < 0 &&
name.indexOf(CookieLib.ATTRIB_DELIM) < 0 && value.indexOf(CookieLib.ATTRIB_DELIM) < 0)