This is Eric from KineticJS. Currently, you can use container.get () to get an array of nodes similar to jQuery, for example:
layer.get('Rect');
layer.get('.foo');
stage.get('#bar');
but you still cannot bind events to all nodes using a selector, for example:
layer.get ('Rect'). on ('click', ...);
I will add this to my task list, so it should probably be released in a couple of weeks :)
Hooray!
Eric
source
share