I've added something to GI 3.9 Builder that will make you happy if you use the JavaScript Test Utility (a.k.a. "the scriptlet pad") very much. Now every GI DOM object can be referenced by its name without writing jsx3.GO(), myApp.getJSXByName() or jsx3.ide.getSelected()[0].
Before you had to type:
jsx3.GO("block1").getWidth();
Now you can just type:
block1.getWidth();

Any object visible in the Component Hierarchy in the active component editor is exposed in this manner. If the current editor is not a component editor then no objects are exposed.
Two caveats:
- Only objects whose names are valid JavaScript variable names are exposed. The name must match [\$a-zA-Z_][\$\w]*.
- The behavior of name collisions is not defined. If you have two or more objects in the same component with the same name, the corresponding variable may reference either one.
Here is the JIRA ticket: http://www.generalinterface.org/bugs/browse/GI-705
Enjoy!

Comments (3)
Oct 01, 2009
Tony Lefebvre says:
Nice ! What about the patch submitted by a user that enhance the "Return v...Nice !
What about the patch submitted by a user that enhance the "Return value" text box ?
The idea was that the returned value is pretty printed (instead of "Object" for example)
Oct 01, 2009
Jesse Costello-Good says:
I would like to eventually implement a full console like Safari's or Firebug's. ...I would like to eventually implement a full console like Safari's or Firebug's. Safari's is nice because it prints out toString() but then lets you drill down into nested objects after the fact. If someone in the community is interested in developing it I would work with them to set requirements.
Oct 14, 2009
Eric Shi says:
Let me try this feature, I think it will be very useful when I hear the origianl...Let me try this feature, I think it will be very useful when I hear the origianl idea from Paul.
because we are all boring to find one nested child field by typing complete name
Eric SHI