org.hibnet.webpipes.processor.cjson.cjson.min.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of webpipes-cjson Show documentation
Show all versions of webpipes-cjson Show documentation
Webpipes is a library to manage web resources like javascript and css files which need processing
before being served. It manages processing like minimization, file merging, css generation from less, linters,
jsx transformation. Resources can be managed as streams from source, or regularly checked cached resources, or
to be generated with an Ant task.
This module adds support for the CJSon compression algorithm.
The newest version!
(function(){function i(c,a){this.parent=c;this.key=a;this.children=[];this.templateIndex=null;this.links=[]}function j(c,a){var d,b,e;if(typeof a==="object")if(Object.prototype.toString.apply(a)==="[object Array]"){d=[];for(b=0;b0;){e=c[b-1].slice(1).concat(e);b=c[b-1][0]}e=e;for(b=0;b0;){a=e.shift();f=0;for(h in a.children)if(Object.hasOwnProperty.call(a.children,h)){e.push(a.children[h]);f+=1}if(f>1||a.links.length>0){f=[];for(g=a;g.templateIndex===null;){f.unshift(g.key);g=g.parent}f.unshift(g.templateIndex);b.push(f);a.templateIndex=b.length;for(f=0;f0?JSON.stringify({f:"cjson",t:b,v:d},null,null):JSON.stringify(c)};window.CJSON.parse=function(c){c=JSON.parse(c);if(typeof c!=="object"||
!("f"in c)||c.f!=="cjson")return c;return k(c.t,c.v)}})();