mirror of https://github.com/sveltejs/svelte
parent
b8c0ab2949
commit
298a339df9
@ -0,0 +1,7 @@
|
||||
export default {
|
||||
dev: true,
|
||||
|
||||
warnings: [
|
||||
`Return 'destroy()' from custom event handlers. Returning 'teardown()' has been deprecated and will be unsupported in Svelte 2`
|
||||
]
|
||||
};
|
@ -0,0 +1,16 @@
|
||||
<button on:foo='foo()'>foo</button>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
methods: {
|
||||
foo() {}
|
||||
},
|
||||
events: {
|
||||
foo(node, callback) {
|
||||
return {
|
||||
teardown() {}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
Loading…
Reference in new issue