<!doctype html>
<html>
<head>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width" />

  <title>1</title>

</head>
<body>

  <h1>1</h1>

<script src="../ev-emitter.js"></script>

<script>
var ee = new EvEmitter;

var hey = function( a, b, c ) { console.log('hey', a, b, c ) };
var ho = function( a, b, c ) { console.log('ho', a, b, c ) };
var letsGo = function( a, b, c ) { console.log('lets go', a, b, c ) };

ee.on( 'foo', hey );
ee.once( 'foo', ho );
ee.on( 'foo', letsGo );

ee.emitEvent( 'foo', [ 1, 2, 3 ] );

ee.off('foo', hey );

ee.emitEvent( 'foo', [ 4, 5, 6 ] );

</script>

</body>
</html>