From 2f5ddeb5d406dbcefeea4899b6b1fe3cb34bac7f Mon Sep 17 00:00:00 2001 From: rightfold Date: Wed, 7 Jun 2017 17:47:59 +0200 Subject: [PATCH] Make _readEventTarget actually work --- src/DOM/Event/Types.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DOM/Event/Types.js b/src/DOM/Event/Types.js index 2a3a450..0a19b6e 100644 --- a/src/DOM/Event/Types.js +++ b/src/DOM/Event/Types.js @@ -4,7 +4,7 @@ exports._readEventTarget = function (left) { return function (right) { return function (foreign) { - return foreign instanceof EventTarget ? left("Value is not an EventTarget") : right(foreign); + return foreign instanceof EventTarget ? right(foreign) : left("Value is not an EventTarget"); }; }; };