@makano/rew 1.2.61 → 1.2.62
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/rew/pkgs/web.js +1 -1
- package/package.json +1 -1
package/lib/rew/pkgs/web.js
CHANGED
@@ -452,7 +452,7 @@ module.exports = (context, importOptions) => {
|
|
452
452
|
return new State(value);
|
453
453
|
}
|
454
454
|
invokeState(states, callback){
|
455
|
-
const statesMapped = states.map(i => i instanceof State ? `getState('${i.id}')` : JSON.stringify(i));
|
455
|
+
const statesMapped = states.map(i => i instanceof State ? `getState('${i.id}')` : (typeof i == "function" ? i.toString() : JSON.stringify(i)));
|
456
456
|
return `((${callback})(event, ...[${statesMapped}]))`;
|
457
457
|
}
|
458
458
|
async bundle(filepath, options = {}) {
|