/*! * treeIt: Convert your JavaScript objects to HTML, no additional hassle * https://github.com/alessioalex/treeIt * License MIT (c) Alexandru Vladutu */ (function(){function g(a){b["is"+a]=function(b){return Object.prototype.toString.call(b)=="[object "+a+"]"}}"use strict";var a,b,c,d,e,f;a=this,c=a.treeIt,b={},d=["Object","Array","Arguments","Function","String","Number","Date","RegExp"];for(f=0,e=d.length;f{{data}}",branch:'
  • {{data}}
  • ',branchRoot:'{{data}}',leaf:''}},b.tmpl=function(a,b){return typeof b!="undefined"&&b!==null?a.replace("{{data}}",b):""},b.renderSingleLeaf=function(a){return b.isString(a)&&(a="'"+a+"'"),b.tmpl(b.templates.leaf,a)},b.traverse=function(a){var c,d,e,f,g;c="",d=b.getBranches(a);if(!d.length)c+=b.renderSingleLeaf(a);else{for(e=0,f=d.length;e