Author: clopes
Date: 2011-10-12 08:40:39 -0700 (Wed, 12 Oct 2011)
New Revision: 27142

Modified:
   cytoscapeweb/branches/compound/html-template/js/cytoscapeweb.js
Log:
Updated filter doc and removed console.log() statements.

Modified: cytoscapeweb/branches/compound/html-template/js/cytoscapeweb.js
===================================================================
--- cytoscapeweb/branches/compound/html-template/js/cytoscapeweb.js     
2011-10-12 15:34:39 UTC (rev 27141)
+++ cytoscapeweb/branches/compound/html-template/js/cytoscapeweb.js     
2011-10-12 15:40:39 UTC (rev 27142)
@@ -741,7 +741,6 @@
                parentId = arguments[i++];
             }
             if (arguments.length > i && typeof arguments[i] === "boolean") { 
updateVisualMappers = arguments[i++]; }
-            console.log(data +","+ parentId+","+updateVisualMappers);
             
             var n = this.swf().addNode(x, y, data, parentId, 
updateVisualMappers);
             return this._parseJSON(n);
@@ -1186,11 +1185,17 @@
          * // 1. Hide all edges that have a weight that is lower than 0.4:
          * vis.filter("edges", function(edge) {
          *     return edge.data.weight >= 0.4;
-         * });
+         * }, true);
          *
          * // 2. Hide all nodes, except two of them, by id:
          * vis.filter("nodes", ['n01', 'n02']);
          *
+         * // 3. Hide all nodes (and edges, of course):
+         * vis.filter("nodes", []);
+         *
+         * // 4. This also hides everything:
+         * vis.filter();
+         *
          * @param {org.cytoscapeweb.Group} [gr] The group of network elements 
to filter.
          *                                       If <code>null</code>, filter 
both nodes and edges.
          * @param {Object} filter A filter function or an array of elements to 
be filtered.

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to