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.
1 parent 6642ae0 commit b1ee8efCopy full SHA for b1ee8ef
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