File tree Expand file tree Collapse file tree 3 files changed +87
-93
lines changed Expand file tree Collapse file tree 3 files changed +87
-93
lines changed Original file line number Diff line number Diff line change @@ -433,13 +433,11 @@ module.exports = {
433433module . exports = {
434434 // Turbolinks 5+ got rid of named events (?!)
435435 setup : function ( ujs ) {
436- ujs . handleEvent ( 'DOMContentLoaded' , ujs . handleMount )
437436 ujs . handleEvent ( 'turbolinks:render' , ujs . handleMount )
438437 ujs . handleEvent ( 'turbolinks:before-render' , ujs . handleUnmount )
439438 } ,
440439
441440 teardown : function ( ujs ) {
442- ujs . removeEvent ( 'DOMContentLoaded' , ujs . handleMount )
443441 ujs . removeEvent ( 'turbolinks:render' , ujs . handleMount )
444442 ujs . removeEvent ( 'turbolinks:before-render' , ujs . handleUnmount )
445443 } ,
Original file line number Diff line number Diff line change @@ -433,13 +433,11 @@ module.exports = {
433433module . exports = {
434434 // Turbolinks 5+ got rid of named events (?!)
435435 setup : function ( ujs ) {
436- ujs . handleEvent ( 'DOMContentLoaded' , ujs . handleMount )
437436 ujs . handleEvent ( 'turbolinks:render' , ujs . handleMount )
438437 ujs . handleEvent ( 'turbolinks:before-render' , ujs . handleUnmount )
439438 } ,
440439
441440 teardown : function ( ujs ) {
442- ujs . removeEvent ( 'DOMContentLoaded' , ujs . handleMount )
443441 ujs . removeEvent ( 'turbolinks:render' , ujs . handleMount )
444442 ujs . removeEvent ( 'turbolinks:before-render' , ujs . handleUnmount )
445443 } ,
You can’t perform that action at this time.
0 commit comments