0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-30 17:00:40 +01:00

Merge pull request #580 from sveltejs/gh-579

downgrade invalid callee error for event handlers to a warning
This commit is contained in:
Rich Harris 2017-05-21 15:19:53 -04:00 committed by GitHub
commit 7c2fd8e3cd
4 changed files with 2 additions and 2 deletions

View File

@ -31,5 +31,5 @@ export default function validateEventHandlerCallee ( validator, attribute ) {
message += `. '${callee.name}' exists on 'helpers', did you put it in the wrong place?`;
}
validator.error( message, start );
}
validator.warn( message, start );
}