Skip to content

Commit

Permalink
Fix arguments passed to emitted events
Browse files Browse the repository at this point in the history
  • Loading branch information
trentmwillis committed May 29, 2017
1 parent eaaee77 commit fdcaf86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/testem/testem_client.js
Expand Up @@ -164,8 +164,8 @@ var Testem = {
},
emit: function(evt) {
var argsWithoutFirst = new Array(arguments.length - 1);
for (var i = 0; i < argsWithoutFirst.length; ++i) {
argsWithoutFirst[i] = arguments[i];
for (var i = 1; i < arguments.length; ++i) {
argsWithoutFirst[i - 1] = arguments[i];
}

if (this.evtHandlers && this.evtHandlers[evt]) {
Expand Down

0 comments on commit fdcaf86

Please sign in to comment.