Add internal `eles.indexOfId(id)` function for where the ID is already read, for performance
Add internal `eles.indexOfId(id)` function for where the ID is already read, for performance

Ref #1224

cytoscape/cytoscape.js,cytoscape/cytoscape.js