Commit 01686e6
committed
Port the load(path); function from Fiji's Javascript interpreter
The 'load(path);' function can be used to store libraries of Javascript
code in a central location and reuse them from multiple Javascripts.
It was noted by Christophe Leterrier that this support was not yet
available in SciJava's Javascript support.
The original code was written by yours truly, hence it is easy to
relicense it to BSD as required for this project.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>1 parent fd11739 commit 01686e6
File tree
1 file changed
+18
-0
lines changed- src/main/java/org/scijava/plugins/scripting/javascript
1 file changed
+18
-0
lines changedLines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
61 | 79 | | |
62 | 80 | | |
63 | 81 | | |
| |||
0 commit comments