Skip to content

Commit c033d5e

Browse files
committed
fix(typo): correct spelling of "load"
1 parent 63adfbe commit c033d5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

react_ujs/src/events/turbolinks.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
module.exports = {
22
// Turbolinks 5+ got rid of named events (?!)
33
setup: function(ujs) {
4-
ujs.handleEvent('turbolinks:render', ujs.handleMount)
4+
ujs.handleEvent('turbolinks:load', ujs.handleMount)
55
ujs.handleEvent('turbolinks:before-render', ujs.handleUnmount)
66
},
77

88
teardown: function(ujs) {
9-
ujs.removeEvent('turbolinks:render', ujs.handleMount)
9+
ujs.removeEvent('turbolinks:load', ujs.handleMount)
1010
ujs.removeEvent('turbolinks:before-render', ujs.handleUnmount)
1111
},
1212
}

0 commit comments

Comments
 (0)