Hi there, I was trying to have and clicked event to display some ONLY nodes information, and following documentation I was getting some errorsDocumentation:Examples
Bind to events that bubble up from elements matching the specified
nodesselector:cy.on('click', 'nodes', { foo: 'bar' }, function(evt){ console.log( evt.data.foo ); // 'bar' var node = this; console.log( 'clicked ' + node.id() ); });I was getting on console: The selector `%s` is invalidWhen I changed to 'node'(singular) instead of 'nodes' it started working.Am I doing something wrong ? if so, what is the difference from node / nodes ? (is nodes a collection of node )Here is my code working:cy.on('select', 'node', function(event){var evtTarget = event.cyTarget;window.evtTarget = evtTarget;//debugger;if( evtTarget === cy ){console.log('click on background');} else {console.log('click on some element');console.log("clicked on " + evtTarget.data("id"));}}) //end-of selectCheers.,