From 33429d4cc8f2b3502a34bf5b7871bfa96454f8d5 Mon Sep 17 00:00:00 2001 From: ggerico Date: Sun, 17 Jun 2018 22:36:34 +0800 Subject: [PATCH] Action.function not invoked in view invoked action functions create "TypeError: Action.Decrement is not a function" --- examples/counters/1/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/counters/1/main.js b/examples/counters/1/main.js index 687c3a5..9a83957 100644 --- a/examples/counters/1/main.js +++ b/examples/counters/1/main.js @@ -23,9 +23,9 @@ const update = (model, action) => Action.case({ // View const view = R.curry((actions$, model) => h('div', {style: countStyle}, [ - h('button', {on: {click: [actions$, Action.Decrement()]}}, '–'), + h('button', {on: {click: [actions$, Action.Decrement]}}, '–'), h('div', {style: countStyle}, model), - h('button', {on: {click: [actions$, Action.Increment()]}}, '+'), + h('button', {on: {click: [actions$, Action.Increment]}}, '+'), ])); const countStyle = {