lib/assets/javascripts/react_ujs.js in react-rails-2.3.0 vs lib/assets/javascripts/react_ujs.js in react-rails-2.3.1

- old
+ new

@@ -117,10 +117,10 @@ // see what things are globally available // and setup event handlers to those things module.exports = function(ujs) { if (ujs.handleEvent) { // We're calling this a second time -- remove previous handlers - if (typeof Turbolinks.EVENTS !== "undefined") { + if (typeof Turbolinks !== "undefined" && typeof Turbolinks.EVENTS !== "undefined") { turbolinksClassicEvents.teardown(ujs); } turbolinksEvents.teardown(ujs); turbolinksClassicDeprecatedEvents.teardown(ujs); pjaxEvents.teardown(ujs); \ No newline at end of file