From 8cdd4dad8a4f9203107a261254150f77b00170ba Mon Sep 17 00:00:00 2001 From: Conduitry Date: Wed, 10 May 2017 08:01:26 -0400 Subject: [PATCH] downgrade invalid callee error for event handlers to a warning (#579) --- src/validate/html/validateEventHandler.js | 4 ++-- .../method-nonexistent-helper/{errors.json => warnings.json} | 0 .../samples/method-nonexistent/{errors.json => warnings.json} | 0 .../window-event-invalid/{errors.json => warnings.json} | 0 4 files changed, 2 insertions(+), 2 deletions(-) rename test/validator/samples/method-nonexistent-helper/{errors.json => warnings.json} (100%) rename test/validator/samples/method-nonexistent/{errors.json => warnings.json} (100%) rename test/validator/samples/window-event-invalid/{errors.json => warnings.json} (100%) diff --git a/src/validate/html/validateEventHandler.js b/src/validate/html/validateEventHandler.js index 3c0f1f288d..634f8729da 100644 --- a/src/validate/html/validateEventHandler.js +++ b/src/validate/html/validateEventHandler.js @@ -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 ); -} \ No newline at end of file + validator.warn( message, start ); +} diff --git a/test/validator/samples/method-nonexistent-helper/errors.json b/test/validator/samples/method-nonexistent-helper/warnings.json similarity index 100% rename from test/validator/samples/method-nonexistent-helper/errors.json rename to test/validator/samples/method-nonexistent-helper/warnings.json diff --git a/test/validator/samples/method-nonexistent/errors.json b/test/validator/samples/method-nonexistent/warnings.json similarity index 100% rename from test/validator/samples/method-nonexistent/errors.json rename to test/validator/samples/method-nonexistent/warnings.json diff --git a/test/validator/samples/window-event-invalid/errors.json b/test/validator/samples/window-event-invalid/warnings.json similarity index 100% rename from test/validator/samples/window-event-invalid/errors.json rename to test/validator/samples/window-event-invalid/warnings.json