Skip to content

Commit

Permalink
Fixes #414
Browse files Browse the repository at this point in the history
  • Loading branch information
javve committed Nov 21, 2020
1 parent b8404bd commit c8dc33d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ module.exports = function (id, options, values) {
},
handlers: function () {
for (var handler in self.handlers) {
if (self[handler]) {
if (self[handler] && self.handlers.hasOwnProperty(handler)) {
self.on(handler, self[handler])
}
}
Expand Down

0 comments on commit c8dc33d

Please sign in to comment.