Skip to content

Commit 332608a

Browse files
authored
Merge pull request #619 from Igor10k/master
Use ['default'] property accessor, not .default
2 parents d2cc604 + c4b33fb commit 332608a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/assets/javascripts/react_ujs_mount.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@
5959
}
6060

6161
// Lastly, if there is a default attribute try that
62-
if (constructor && constructor.default) {
63-
constructor = constructor.default;
62+
if (constructor && constructor['default']) {
63+
constructor = constructor['default'];
6464
}
6565

6666
return constructor;

0 commit comments

Comments
 (0)