mirror of https://github.com/sveltejs/svelte
parent
aa203973e0
commit
8ec02b336d
@ -1,15 +1,15 @@
|
||||
[{
|
||||
"message": "Valid event modifiers are preventDefault, stopPropagation, capture, once or passive",
|
||||
"code": "invalid-event-modifier",
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 8,
|
||||
"character": 8
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 36,
|
||||
"character": 36
|
||||
},
|
||||
"pos": 8
|
||||
}]
|
||||
"message": "Valid event modifiers are preventDefault, stopPropagation, capture, once or passive",
|
||||
"code": "invalid-event-modifier",
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 8,
|
||||
"character": 8
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 36,
|
||||
"character": 36
|
||||
},
|
||||
"pos": 8
|
||||
}]
|
||||
|
@ -0,0 +1,3 @@
|
||||
export default {
|
||||
legacy: true
|
||||
};
|
@ -0,0 +1,15 @@
|
||||
[{
|
||||
"message": "The 'once' modifier cannot be used in legacy mode",
|
||||
"code": "invalid-event-modifier",
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 8,
|
||||
"character": 8
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 37,
|
||||
"character": 37
|
||||
},
|
||||
"pos": 8
|
||||
}]
|
@ -0,0 +1 @@
|
||||
<button on:click|once="handleClick()"></button>
|
Loading…
Reference in new issue