@erickmerchant/framework
Advanced tools
Comparing version 12.0.0 to 12.0.1
@@ -19,3 +19,9 @@ module.exports = function ({target, store, component, diff, raf}) { | ||
function dispatch (...args) { | ||
action(commit, ...args) | ||
if (!args.length) { | ||
commit(function () { | ||
return state | ||
}) | ||
} else { | ||
action(commit, ...args) | ||
} | ||
} | ||
@@ -22,0 +28,0 @@ |
{ | ||
"name": "@erickmerchant/framework", | ||
"version": "12.0.0", | ||
"version": "12.0.1", | ||
"description": "A simple data down, actions up framework.", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
7934
120