Skip to content

Commit

Permalink
Fix chrome-promise: don't remove Event objects
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelklehr committed Aug 13, 2017
1 parent 0cac90f commit 2393ff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/chrome-promise.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
var val = source[key];
var type = typeof val;

if (type === 'object' && !(val instanceof ChromePromise)) {
if (type === 'object' && !(val instanceof ChromePromise) && key.indexOf('on') != 0) {
target[key] = {};
fillProperties(val, target[key]);
} else if (type === 'function') {
Expand Down

0 comments on commit 2393ff5

Please sign in to comment.