We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6642ae0 + b1ee8ef commit ac28d14Copy full SHA for ac28d14
react_ujs/src/events/detect.js
@@ -9,7 +9,9 @@ var turbolinksClassicEvents = require("./turbolinksClassic")
9
module.exports = function(ujs) {
10
if (ujs.handleEvent) {
11
// We're calling this a second time -- remove previous handlers
12
- turbolinksClassicEvents.teardown(ujs)
+ if (typeof Turbolinks.EVENTS !== "undefined") {
13
+ turbolinksClassicEvents.teardown(ujs);
14
+ }
15
turbolinksEvents.teardown(ujs);
16
turbolinksClassicDeprecatedEvents.teardown(ujs);
17
pjaxEvents.teardown(ujs);
0 commit comments