File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -575,6 +575,16 @@ function compileDirectives (attrs, options) {
575
575
}
576
576
} else
577
577
578
+ // event handlers
579
+ if ( onRE . test ( name ) ) {
580
+ dirs . push ( {
581
+ name : 'on' ,
582
+ arg : name . replace ( onRE , '' ) ,
583
+ descriptors : [ newDirParser . parse ( value ) ] ,
584
+ def : options . directives . on
585
+ } )
586
+ } else
587
+
578
588
// special case for el
579
589
if ( name === 'el' || name === 'bind-el' ) {
580
590
dirs . push ( {
@@ -593,7 +603,7 @@ function compileDirectives (attrs, options) {
593
603
descriptors : [ newDirParser . parse ( value ) ] ,
594
604
def : options . directives . transition
595
605
} )
596
- }
606
+ } else
597
607
598
608
// attribute bindings
599
609
if ( bindRE . test ( name ) ) {
@@ -613,16 +623,6 @@ function compileDirectives (attrs, options) {
613
623
} )
614
624
} else
615
625
616
- // event handlers
617
- if ( onRE . test ( name ) ) {
618
- dirs . push ( {
619
- name : 'on' ,
620
- arg : name . replace ( onRE , '' ) ,
621
- descriptors : [ newDirParser . parse ( value ) ] ,
622
- def : options . directives . on
623
- } )
624
- } else
625
-
626
626
// TODO: remove this in 1.0.0
627
627
if ( config . interpolate ) {
628
628
dir = collectAttrDirective ( name , value , options )
You can’t perform that action at this time.
0 commit comments