Changeset 1078 for trunk/src/org/expeditee/items/widgets
- Timestamp:
- 07/12/16 23:49:55 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/items/widgets/JSWidget.java
r919 r1078 43 43 public class JSWidget extends DataFrameWidget implements JSThreadable { 44 44 45 private static final Object global = Javascript2.eval("new Object()");45 private static Object global = null; 46 46 47 47 // a method to run that will set up and return the root JComponent for this Widget … … 68 68 private JSWidget(Text source, int width, int height, String init, String save, String load) throws Exception { 69 69 super(source, new JPanel(new BorderLayout()), -1, width, -1, -1, height, -1); 70 if (global == null) { 71 global = Javascript2.eval("new Object()"); 72 } 70 73 this.init = init; 71 74 this.save = save;
Note:
See TracChangeset
for help on using the changeset viewer.