~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/static/javascript/yui/build/cookie/cookie-debug.js

  • Committer: Martin Albisetti
  • Date: 2008-12-30 19:20:39 UTC
  • Revision ID: argentina@gmail.com-20081230192039-kc2spvli08fo09sx
Upgrade YUI3 to PR2

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
3
3
Code licensed under the BSD License:
4
4
http://developer.yahoo.net/yui/license.txt
5
 
version: 3.0.0pr1
 
5
version: 3.0.0pr2
6
6
*/
7
7
/**
8
8
 * Utilities for cookie management
122
122
                hashPart /*:Array*/ = NULL,
123
123
                hash /*:Object*/ = {};
124
124
            
125
 
            for (var i=0, len=hashParts.length; i < len; i++){
126
 
                hashPart = hashParts[i].split("=");
127
 
                hash[decode(hashPart[0])] = decode(hashPart[1]);
 
125
            if (text.length){
 
126
                for (var i=0, len=hashParts.length; i < len; i++){
 
127
                    hashPart = hashParts[i].split("=");
 
128
                    hash[decode(hashPart[0])] = decode(hashPart[1]);
 
129
                }
128
130
            }
129
131
            
130
 
            return hash;
 
132
            return hash;          
131
133
        },    
132
134
        
133
135
        /**