Skip to content

Commit

Permalink
const keyword is not supported in strict mode in iOS 9.x
Browse files Browse the repository at this point in the history
  • Loading branch information
srgpqt committed Sep 29, 2017
1 parent 5f741e8 commit fdf917f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SyntheticEvent.js
Expand Up @@ -323,9 +323,9 @@ function getPooledWarningPropertyDefinition(propName, getVal) {
}

function getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) {
const EventConstructor = this;
var EventConstructor = this;
if (EventConstructor.eventPool.length) {
const instance = EventConstructor.eventPool.pop();
var instance = EventConstructor.eventPool.pop();
EventConstructor.call(
instance,
dispatchConfig,
Expand Down

0 comments on commit fdf917f

Please sign in to comment.