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

George Staikos staikos at kde.org
Fri Jun 3 09:36:47 CEST 2005


SVN commit 421465 by staikos:

collection docs are done


 M  +0 -1      TODO  
 M  +7 -0      bind_collection.h  
 D             bind_collection.xml  


--- trunk/extragear/graphics/kst/kst/extensions/js/TODO #421464:421465
@@ -29,6 +29,5 @@
 Docs:
 - Add examples with an example node
 - Make it pretty
-- Document collections
 
 
--- trunk/extragear/graphics/kst/kst/extensions/js/bind_collection.h #421464:421465
@@ -29,6 +29,13 @@
    @description This is the generic collection class used by Kst to store lists
                 of objects.  It behaves mostly like an array in JavaScript.  At
                 this time it is read-only.
+
+                Iteration looks something like this:
+                <code><pre>
+                for (i = 0; i < collection.length; ++i) {
+                  // do something with collection[i]
+                }
+                </pre></code>
 */
 class KstBindCollection : public KstBinding {
   public:


More information about the Kst mailing list