[Kst] extragear/graphics/kst/kst/extensions/js

George Staikos staikos at kde.org
Mon Dec 19 07:30:35 CET 2005


SVN commit 489574 by staikos:

get rid of the global object binding


 M  +0 -1      js.cpp  
 M  +3 -3      scriptgui.html  


--- trunk/extragear/graphics/kst/kst/extensions/js/js.cpp #489573:489574
@@ -169,7 +169,6 @@
 
 
 void KstJS::createBindings() {
-  _jsPart->addObject(app(), "kst");
   _jsPart->factory()->addType("KstJSUIBuilder");
   _jsPart->factory()->addType("KActionCollection");
   if (_merge) {
--- trunk/extragear/graphics/kst/kst/extensions/js/scriptgui.html #489573:489574
@@ -75,13 +75,13 @@
 	actions.
 	</ul>
 	<br/>
-kst
+Kst.gui
 	<ul>
-	This is a global object that provides access to the main Kst window.
+	This is an object that provides access to the main Kst window.
 	It represents the GUI and can be walked like a DOM.  This object uses
 	KJSEmbed auto-bindings, and is not guaranteed to be compatible across
 	KDE or Kst versions.  You must look for what you want in the object
-	before calling it.  Example:  <code>kst.close();</code>
+	before calling it.  Example:  <code>Kst.gui.close();</code>
 	</ul>
 </ul>
 


More information about the Kst mailing list