@samitouri / QOS-React / commits / f707ee53e2

Extend the correct object in the SyntheticEvent proxy

Paul O’Shannessy committed Mar 4, 2016 at 12:43 UTC f707ee53e2cb74f7c345268d2c00b953f46c4d14
1 file changed +1 -1
src/renderers/dom/client/syntheticEvents/SyntheticEvent.js
+1 -1
@@ -190,7 +190,7 @@ if (__DEV__) {
190 /*eslint-disable no-func-assign */
191 SyntheticEvent = new Proxy(SyntheticEvent, {
192 construct: function(target, args) {
193 - return this.apply(target, {}, args);
193 + return this.apply(target, Object.create(target.prototype), args);
194 },
195 apply: function(constructor, that, args) {
196 return new Proxy(constructor.apply(that, args), {