Skip to content

Commit

Permalink
Corrected DTMF.on('decode', ...)
Browse files Browse the repository at this point in the history
  • Loading branch information
MayamaTakeshi committed Feb 21, 2020
1 parent dd9b8e9 commit b67e2af
Show file tree
Hide file tree
Showing 4 changed files with 512 additions and 568 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 b67e2af

Please sign in to comment.