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); + } }