a:22:{s:9:"#provides";s:4:"dojo";s:9:"#resource";s:30:"_base/_loader/hostenv_rhino.js";s:9:"dojo.byId";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:2:"id";a:1:{s:4:"type";s:0:"";}s:3:"doc";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:164:" if(id && (typeof id == "string" || id instanceof String)){ if(!doc){ doc = document; } return doc.getElementById(id); } return id; // assume it's a node";s:7:"returns";s:18:"assume it's a node";s:7:"summary";s:0:"";}s:13:"dojo._loadUri";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:3:"uri";a:1:{s:4:"type";s:0:"";}s:2:"cb";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:959:" try{ var local = (new java.io.File(uri)).exists(); if(!local){ try{ // try it as a file first, URL second var stream = (new java.net.URL(uri)).openStream(); // close the stream so we don't leak resources stream.close(); }catch(e){ // no debug output; this failure just means the uri was not found. return false; } } //FIXME: Use Rhino 1.6 native readFile/readUrl if available? if(cb){ var contents = (local ? readText : readUri)(uri, "UTF-8"); // patch up the input to eval until https://bugzilla.mozilla.org/show_bug.cgi?id=471005 is fixed. if(!eval("'\u200f'").length){ contents = String(contents).replace(/[\u200E\u200F\u202A-\u202E]/g, function(match){ return "\\u" + match.charCodeAt(0).toString(16); }) } cb(eval('('+contents+')')); }else{ load(uri); } return true; }catch(e){ console.debug("rhino load('" + uri + "') failed. Exception: " + e); return false; }";s:7:"private";b:1;s:7:"summary";s:0:"";}s:9:"dojo.exit";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:8:"exitcode";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:16:" quit(exitcode);";s:7:"summary";s:0:"";}s:31:"dojo._rhinoCurrentScriptViaJava";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:5:"depth";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:1150:" var optLevel = Packages.org.mozilla.javascript.Context.getCurrentContext().getOptimizationLevel(); var caw = new java.io.CharArrayWriter(); var pw = new java.io.PrintWriter(caw); var exc = new java.lang.Exception(); var s = caw.toString(); // we have to exclude the ones with or without line numbers because they put double entries in: // at org.mozilla.javascript.gen.c3._c4(/Users/mda/Sites/burstproject/burst/Runtime.js:56) // at org.mozilla.javascript.gen.c3.call(/Users/mda/Sites/burstproject/burst/Runtime.js) var matches = s.match(/[^\(]*\.js\)/gi); if(!matches){ throw Error("cannot parse printStackTrace output: " + s); } // matches[0] is entire string, matches[1] is this function, matches[2] is caller, ... var fname = ((typeof depth != 'undefined')&&(depth)) ? matches[depth + 1] : matches[matches.length - 1]; fname = matches[3]; if(!fname){ fname = matches[1]; } // print("got fname '" + fname + "' from stack string '" + s + "'"); if (!fname){ throw Error("could not find js file in printStackTrace output: " + s); } //print("Rhino getCurrentScriptURI returning '" + fname + "' from: " + s); return fname;";s:7:"private";b:1;s:7:"summary";s:0:"";}s:8:"readText";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:4:"path";a:1:{s:4:"type";s:0:"";}s:8:"encoding";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:244:" encoding = encoding || "utf-8"; // NOTE: we intentionally avoid handling exceptions, since the caller will // want to know var jf = new java.io.File(path); var is = new java.io.FileInputStream(jf); return dj_readInputStream(is, encoding);";s:7:"summary";s:0:"";}s:7:"readUri";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:3:"uri";a:1:{s:4:"type";s:0:"";}s:8:"encoding";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:190:" var conn = (new java.net.URL(uri)).openConnection(); encoding = encoding || conn.getContentEncoding() || "utf-8"; var is = conn.getInputStream(); return dj_readInputStream(is, encoding);";s:7:"summary";s:0:"";}s:18:"dj_readInputStream";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:2:"is";a:1:{s:4:"type";s:0:"";}s:8:"encoding";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:338:" var input = new java.io.BufferedReader(new java.io.InputStreamReader(is, encoding)); try { var sb = new java.lang.StringBuffer(); var line = ""; while((line = input.readLine()) !== null){ sb.append(line); sb.append(java.lang.System.getProperty("line.separator")); } return sb.toString(); } finally { input.close(); }";s:7:"summary";s:0:"";}s:9:"dojo.body";a:3:{s:4:"type";s:8:"Function";s:6:"source";s:23:" return document.body; ";s:7:"summary";s:0:"";}s:12:"clearTimeout";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:3:"idx";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:67:" if(!dojo._timeouts[idx]){ return; } dojo._timeouts[idx].stop();";s:7:"summary";s:0:"";}s:10:"setTimeout";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:4:"func";a:1:{s:4:"type";s:0:"";}s:5:"delay";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:456:" var def={ sleepTime:delay, hasSlept:false, run:function(){ if(!this.hasSlept){ this.hasSlept=true; java.lang.Thread.currentThread().sleep(this.sleepTime); } try{ func(); }catch(e){ console.debug("Error running setTimeout thread:" + e); } } }; var runnable = new java.lang.Runnable(def); var thread = new java.lang.Thread(runnable); thread.start(); return dojo._timeouts.push(thread)-1;";s:7:"summary";s:43:"provides timed callbacks using Java threads";}s:19:"setTimeout.hasSlept";a:2:{s:8:"instance";s:10:"setTimeout";s:7:"summary";s:0:"";}s:12:"dojo.baseUrl";a:1:{s:7:"summary";s:0:"";}s:11:"dojo.locale";a:1:{s:7:"summary";s:0:"";}s:10:"dojo._name";a:2:{s:7:"private";b:1;s:7:"summary";s:0:"";}s:12:"dojo.isRhino";a:1:{s:7:"summary";s:0:"";}s:13:"console.debug";a:1:{s:7:"summary";s:0:"";}s:28:"dojo.config.libraryScriptUri";a:1:{s:7:"summary";s:0:"";}s:8:"dojo.doc";a:1:{s:7:"summary";s:0:"";}s:14:"dojo._timeouts";a:2:{s:7:"private";b:1;s:7:"summary";s:0:"";}s:4:"dojo";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}}