File tree Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -26,20 +26,19 @@ function beforeNodeRemoved(node) {
26
26
}
27
27
28
28
function beforeNodeMorphed ( target , newElement ) {
29
- if ( ! ( target instanceof HTMLElement ) ) {
30
- return
31
- }
32
- if ( ! target . hasAttribute ( "data-turbo-permanent" ) ) {
33
- const event = dispatch ( "turbo:before-morph-element" , {
34
- cancelable : true ,
35
- target ,
36
- detail : {
37
- newElement
38
- }
39
- } )
40
- return ! event . defaultPrevented
29
+ if ( target instanceof HTMLElement ) {
30
+ if ( ! target . hasAttribute ( "data-turbo-permanent" ) ) {
31
+ const event = dispatch ( "turbo:before-morph-element" , {
32
+ cancelable : true ,
33
+ target ,
34
+ detail : {
35
+ newElement
36
+ }
37
+ } )
38
+ return ! event . defaultPrevented
39
+ }
40
+ return false
41
41
}
42
- return false
43
42
}
44
43
45
44
function beforeAttributeUpdated ( attributeName , target , mutationType ) {
You can’t perform that action at this time.
0 commit comments