From ee5cdfa7883cc6b0517b5ff5b3c5baeaefd51866 Mon Sep 17 00:00:00 2001 From: Maarten Vanraes Date: Mon, 30 Nov 2015 19:23:27 +0100 Subject: eventHandler attribute requires to be an EventHandler Role --- lib/ManaTools/Shared/GUI/EventRole.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/ManaTools') diff --git a/lib/ManaTools/Shared/GUI/EventRole.pm b/lib/ManaTools/Shared/GUI/EventRole.pm index f28b25ac..02376b81 100644 --- a/lib/ManaTools/Shared/GUI/EventRole.pm +++ b/lib/ManaTools/Shared/GUI/EventRole.pm @@ -73,7 +73,7 @@ requires 'processEvent'; has 'eventHandler' => ( is => 'ro', - isa => 'ManaTools::Shared::GUI::EventHandlerRole', + does => 'ManaTools::Shared::GUI::EventHandlerRole', required => 1, ); -- cgit v1.2.1