diff options
Diffstat (limited to 'emacs.d/nxhtml/related/rhino.js')
-rw-r--r-- | emacs.d/nxhtml/related/rhino.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/emacs.d/nxhtml/related/rhino.js b/emacs.d/nxhtml/related/rhino.js new file mode 100644 index 0000000..efc50f0 --- /dev/null +++ b/emacs.d/nxhtml/related/rhino.js @@ -0,0 +1,14 @@ +// Where you store your files +var project_folder = 'file:///c:/emacs/p/091105/EmacsW32/nxhtml/related/'; +// Browser environment wrapper over Rhino +load(project_folder + 'env.js'); +// For DOM constructing +window.location = project_folder + 'blank.html'; +var my_script = arguments[0]; +// If DOM ready +window.onload = function(){ + // Avoid recursive inclusion + if ("rhino_flymake.js" != my_script) { + load(my_script); + } +} |