Skip to content
Permalink
Browse files

feat(script): fix event function->body str: replace "return engineSta…

…te" to return engineState;"
  • Loading branch information...
yyc-git committed Jun 1, 2019
1 parent ec60c07 commit d1fc97977d218a4df179e384e75896b3fde0f31f
@@ -3,7 +3,7 @@ module Method = {

let _buildBodyStr = (eventFunctionName, eventFunction, str) =>
switch (eventFunction) {
| None => {j| $str \n $eventFunctionName: (script, api, engineState) => { \n return engineState \n }|j}
| None => {j| $str \n $eventFunctionName: (script, api, engineState) => { \n return engineState; \n }|j}
| Some(func) =>
let funcStr = SerializeService.serializeFunction(func);

@@ -41,13 +41,13 @@ exports[`script event function inspector test snapshot test 1`] = `
type="text"
value="{
init: (script, api, engineState) => {
return engineState
return engineState;
},
update: (script, api, engineState) => {
return engineState
return engineState;
},
dispose: (script, api, engineState) => {
return engineState
return engineState;
}
}"
/>

0 comments on commit d1fc979

Please sign in to comment.
You can’t perform that action at this time.