Skip to content

Commit e2a50f0

Browse files
edisonaugusthyBookOfGreg
authored andcommitted
Changed Let to Var (#1027)
Changed Let to Var to avoid breaking down in older browsers Will fix #1076
1 parent dadaa74 commit e2a50f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

react_ujs/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ var ReactRailsUJS = {
103103
}
104104
throw new Error(message + ". Make sure your component is available to render.")
105105
} else {
106-
let component = this.components[cacheId];
106+
var component = this.components[cacheId];
107107
if(component === undefined) {
108108
component = React.createElement(constructor, props);
109109
if(turbolinksPermanent) {

0 commit comments

Comments
 (0)