Skip to content

Commit

Permalink
Merge pull request #19 from MayamaTakeshi/master
Browse files Browse the repository at this point in the history
Corrected DTMF.on('decode', ...)
  • Loading branch information
Ravenstine authored Mar 26, 2020
2 parents dd9b8e9 + 79f53b4 commit 8add439
Show file tree
Hide file tree
Showing 7 changed files with 696 additions and 569 deletions.
2 changes: 1 addition & 1 deletion lib/dtmf.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class DTMF {
if (this.repeatCounter === this.options.repeatMin) {
result.push(value);
for (let handler of Array.from(this.decodeHandlers)) {
setTimeout(handler(value), 0);
setTimeout(function() { handler(value) }, 0);
}
}
} else {
Expand Down
Loading

0 comments on commit 8add439

Please sign in to comment.