{"dojo.browser_debug":{"meta":{"functions":{"removeComments":{"meta":{"summary":"","parameters":{"contents":{"type":""}},"src":" contents = new String((!contents) ? \"\" : contents);\n\t\/\/ clobber all comments\n\t\/\/ FIXME broken if \/\/ or \/* inside quotes or regexp\n\tcontents = contents.replace( \/^(.*?)\\\/\\\/(.*)$\/mg , \"$1\");\n\tcontents = contents.replace( \/(\\n)\/mg , \"__DOJONEWLINE\");\n\tcontents = contents.replace( \/\\\/\\*(.*?)\\*\\\/\/g , \"\");\n\treturn contents.replace( \/__DOJONEWLINE\/mg , \"\\n\");"}},"dojo.hostenv.getRequiresAndProvides":{"meta":{"summary":"","parameters":{"contents":{"type":""}},"src":" if(!contents){ return []; }\n\t\/\/ check to see if we need to load anything else first. Ugg.\n\tvar deps = [];\n\tvar tmp;\n\tRegExp.lastIndex = 0;\n\tvar testExp = \/dojo.(hostenv.loadModule|hostenv.require|require|requireIf|kwCompoundRequire|hostenv.conditionalLoadModule|hostenv.startPackage|provide)\\([\\w\\W]*?\\)\/mg;\n\twhile((tmp = testExp.exec(contents)) != null){\n\t\tdeps.push(tmp[0]);\n\t}\n\treturn deps;"}},"dojo.hostenv.getDelayRequiresAndProvides":{"meta":{"summary":"","parameters":{"contents":{"type":""}},"src":" if(!contents){ return []; }\n\t\/\/ check to see if we need to load anything else first. Ugg.\n\tvar deps = [];\n\tvar tmp;\n\tRegExp.lastIndex = 0;\n\tvar testExp = \/dojo.(requireAfterIf)\\([\\w\\W]*?\\)\/mg;\n\twhile((tmp = testExp.exec(contents)) != null){\n\t\tdeps.push(tmp[0]);\n\t}\n\treturn deps;"}},"dojo.clobberLastObject":{"meta":{"summary":"","parameters":{"objpath":{"type":""}},"src":" if(objpath.indexOf('.') == -1){\n\t\tif(!dj_undef(objpath, dj_global)){\n\t\t\tdelete dj_global[objpath];\n\t\t}\n\t\treturn true;\n\t}\n\tvar syms = objpath.split(\/\\.\/);\n\tvar base = dojo.evalObjPath(syms.slice(0, -1).join(\".\"), false);\n\tvar child = syms[syms.length-1];\n\tif(!dj_undef(child, base)){\n\t\t\/\/ alert(objpath);\n\t\tdelete base[child];\n\t\treturn true;\n\t}\n\treturn false;"}},"zip":{"meta":{"summary":"","parameters":{"arr":{"type":""}},"src":" var ret = [];\n\tvar seen = {};\n\tfor(var x=0; x<arr.length; x++){\n\t\tif(!seen[arr[x]]){\n\t\t\tret.push(arr[x]);\n\t\t\tseen[arr[x]] = true;\n\t\t}\n\t}\n\treturn ret;"}},"dj_eval":{"meta":{"summary":"","src":" j_eval = function(){ return true;   "}},"dojo.hostenv.loadUri":{"meta":{"summary":"","parameters":{"uri":{"type":""},"cb":{"type":"optional"}},"src":" if(dojo.hostenv.loadedUris[uri]){\n\t\treturn true; \/\/ fixes endless recursion opera trac 471\n\t}\n\ttry{\n\t\tvar text = this.getText(uri, null, true);\n\t\tif(!text) { return false; }\n\t\tif(cb){\n\t\t\t\/\/ No way to load i18n bundles but to eval them, and they usually\n\t\t\t\/\/ don't have script needing to be debugged anyway\n\t\t\tvar expr = old_dj_eval('('+text+')');\n\t\t\tcb(expr);\n\t\t}else {\n\t\t\tvar requires = dojo.hostenv.getRequiresAndProvides(text);\n\t\t\teval(requires.join(\";\"));\n\t\t\tdojo.hostenv.loadedUris.push(uri);\n\t\t\tdojo.hostenv.loadedUris[uri] = true;\n\t\t\tvar delayRequires = dojo.hostenv.getDelayRequiresAndProvides(text);\n\t\t\teval(delayRequires.join(\";\"));\n\t\t}\n\t}catch(e){ \n\t\talert(e);\n\t}\n\treturn true;","returns":"fixes endless recursion opera trac 471"}},"dojo.hostenv.writeIncludes":{"meta":{"summary":"","parameters":{"willCallAgain":{"type":""}},"src":" for(var x=removals.length-1; x>=0; x--){\n\t\tdojo.clobberLastObject(removals[x]);\n\t}\n\tvar depList = [];\n\tvar seen = dojo.hostenv._writtenIncludes;\n\tfor(var x=0; x<dojo.hostenv.loadedUris.length; x++){\n\t\tvar curi = dojo.hostenv.loadedUris[x];\n\t\t\/\/ dojo.debug(curi);\n\t\tif(!seen[curi]){\n\t\t\tseen[curi] = true;\n\t\t\tdepList.push(curi);\n\t\t}\n\t}\n\tdojo.hostenv._global_omit_module_check = true;\n\tfor(var x= dojo.hostenv._loadedUrisListStart; x<depList.length; x++){\n\t\tdocument.write(\"<script type='text\/javascript' src='\"+depList[x]+\"'><\/script>\");\n\t}\n\tdocument.write(\"<script type='text\/javascript'>dojo.hostenv._global_omit_module_check = false;<\/script>\");\n\tdojo.hostenv._loadedUrisListStart = 0;\n\tif (!willCallAgain) {\n\t\t\/\/ turn off debugAtAllCosts, so that dojo.require() calls inside of ContentPane hrefs\n\t\t\/\/ work correctly\n\t\tdj_eval = old_dj_eval;\n\t\tdojo.hostenv.loadUri = dojo.hostenv.oldLoadUri;\n\t}"}}}}}}