/loggerhead/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/loggerhead/trunk

« back to all changes in this revision

Viewing changes to loggerhead/static/javascript/yui/build/dump/dump-min.js

  • Committer: Martin Albisetti
  • Date: 2008-12-22 15:16:45 UTC
  • mfrom: (255 trunk)
  • mto: (157.1.8 loggerhead)
  • mto: This revision was merged to the branch mainline in revision 423.
  • Revision ID: argentina@gmail.com-20081222151645-vqxhqpr0fx9rc9t1
Merge from trunk revno 256

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
 
3
Code licensed under the BSD License:
 
4
http://developer.yahoo.net/yui/license.txt
 
5
version: 3.0.0pr1
 
6
*/
 
7
YUI.add("dump",function(G){var B=G.Lang,C="{...}",F="f(){...}",A=", ",D=" => ",E=function(L,K){var I,H,J=[];if(!B.isObject(L)){return L+"";}else{if(L instanceof Date||("nodeType" in L&&"tagName" in L)){return L;}else{if(B.isFunction(L)){return F;}}}K=(B.isNumber(K))?K:3;if(B.isArray(L)){J.push("[");for(I=0,H=L.length;I<H;I=I+1){if(B.isObject(L[I])){J.push((K>0)?B.dump(L[I],K-1):C);}else{J.push(L[I]);}J.push(A);}if(J.length>1){J.pop();}J.push("]");}else{J.push("{");for(I in L){if(G.Object.owns(L,I)){J.push(I+D);if(B.isObject(L[I])){J.push((K>0)?B.dump(L[I],K-1):C);}else{J.push(L[I]);}J.push(A);}}if(J.length>1){J.pop();}J.push("}");}return J.join("");};G.dump=E;B.dump=E;},"3.0.0pr1");
 
 
b'\\ No newline at end of file'