Avoid "Member not found" error in IE (#7411)

Explanation, discussion, and similar change as #7343

Addresses #7320
(cherry picked from commit a8741963dc)
This commit is contained in:
Greg Palmer
2016-08-19 13:43:34 -07:00
committed by Paul O’Shannessy
parent 4be377650e
commit 08dbefedc7
@@ -121,7 +121,7 @@ Object.assign(SyntheticEvent.prototype, {
if (event.preventDefault) {
event.preventDefault();
} else {
} else if (typeof event.returnValue !== 'unknown') { // eslint-disable-line valid-typeof
event.returnValue = false;
}
this.isDefaultPrevented = emptyFunction.thatReturnsTrue;