From 3e8df35ae6f5f2a8b1a98505123ac201d2dc8248 Mon Sep 17 00:00:00 2001 From: Lukasz Grabski Date: Wed, 21 Feb 2018 16:50:35 +0100 Subject: [PATCH] #45 - added missing call() statements --- .../core/view/ComponentFunctionCallback.java | 29 ++++++++++--------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/licket-framework/src/main/java/org/licket/core/view/ComponentFunctionCallback.java b/licket-framework/src/main/java/org/licket/core/view/ComponentFunctionCallback.java index c2ef6b8..7abd574 100644 --- a/licket-framework/src/main/java/org/licket/core/view/ComponentFunctionCallback.java +++ b/licket-framework/src/main/java/org/licket/core/view/ComponentFunctionCallback.java @@ -15,22 +15,23 @@ */ public class ComponentFunctionCallback { - private MountedComponentNavigation mountedComponentNavigation = new MountedComponentNavigation(); - private List functionCalls = newArrayList(); + private MountedComponentNavigation mountedComponentNavigation = new MountedComponentNavigation(); + private List functionCalls = newArrayList(); - public final void call(FunctionCallBuilder functionCallBuilder) { - functionCalls.add(functionCallBuilder); - } + public final void call(FunctionCallBuilder functionCallBuilder) { + functionCalls.add(functionCallBuilder); + } - public final void navigateToMounted(Class> componentClass) { - mountedComponentNavigation.navigateToMounted(componentClass, property("this", "$router"), paramsAggregator -> {}); - } + public final void navigateToMounted(Class> componentClass) { + call(mountedComponentNavigation.navigateToMounted(componentClass, property("this", "$router"), paramsAggregator -> { + })); + } - public final void navigateToMounted(Class> componentClass, Consumer params) { - mountedComponentNavigation.navigateToMounted(componentClass, property("this", "$router"), params); - } + public final void navigateToMounted(Class> componentClass, Consumer params) { + call(mountedComponentNavigation.navigateToMounted(componentClass, property("this", "$router"), params)); + } - public final void forEachCall(Consumer functionCallConsumer) { - functionCalls.forEach(functionCallConsumer); - } + public final void forEachCall(Consumer functionCallConsumer) { + functionCalls.forEach(functionCallConsumer); + } }