bestiejs/benchmark.js — Issue #4: Add Benchmark.Event#target and currentTarget
Author: jdalton
Created: 2011-11-15 02:22:53+00:00
State: open

Instead of passing the benchmark as a second argument as

~~~ js
suite.on('cycle', function(event, bench) {
console.log(bench);
});
~~~

we should use

~~~ js
suite.on('cycle', function(event) {
console.log(event.target);
});
~~~