## Examples

Listen to events that bubble up from elements matching the specified `node` selector:
```js
cy.on('tap', 'node', function(evt){
  var node = evt.target;
  console.log( 'tapped ' + node.id() );
});
```

Listen to all tap events that the core receives:

```js
cy.on('tap', function(event){
  // target holds a reference to the originator
  // of the event (core or element)
  var evtTarget = event.target;

  if( evtTarget === cy ){
    console.log('tap on background');
  } else {
    console.log('tap on some element');
  }
});
```
