소스 검색

Update babylon.action.ts

To allow a trigger in brackets without a parameter. When you first have both a trigger and a parameter, it's not clear why it wouldn't work if you remove the parameter. Took me a while to figure out.
Gijs Schenk 7 년 전
부모
커밋
31e9712843
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/Actions/babylon.action.ts

+ 2 - 0
src/Actions/babylon.action.ts

@@ -37,6 +37,8 @@
             if (triggerOptions.parameter) {
                 this.trigger = triggerOptions.trigger;
                 this._triggerParameter = triggerOptions.parameter;
+            } else if(triggerOptions.trigger) {
+                this.trigger = triggerOptions.trigger;
             } else {
                 this.trigger = triggerOptions;
             }