@ -516,16 +516,16 @@ export default class Element extends Node {
});
});
`);
`);
if(generator.options.dev){
block.builders.hydrate.addBlock(deindent`
block.builders.hydrate.addBlock(deindent`
if(${handlerName}.teardown){
if(${handlerName}.teardown){
console.warn("Return 'destroy()' from custom event handlers. Returning 'teardown()' has been deprecated and will be unsupported in Svelte 2");
${handlerName}.destroy=${handlerName}.teardown;
}
${generator.options.dev&&`console.warn("Return 'destroy()' from custom event handlers. Returning 'teardown()' has been deprecated and will be unsupported in Svelte 2");`}