(context, { on, time, evt, from, classRef, classRef2, classRefs, betweenValues })
| 8090 | } |
| 8091 | } |
| 8092 | resolve(context, { on, time, evt, from, classRef, classRef2, classRefs, betweenValues }) { |
| 8093 | if (time) { |
| 8094 | return new Promise((resolve) => { |
| 8095 | this.toggle(context, on, classRef, classRef2, classRefs, betweenValues); |
| 8096 | setTimeout(() => { |
| 8097 | this.toggle(context, on, classRef, classRef2, classRefs, betweenValues); |
| 8098 | resolve(this.findNext(context)); |
| 8099 | }, time); |
| 8100 | }); |
| 8101 | } else if (evt) { |
| 8102 | return new Promise((resolve) => { |
| 8103 | var target = from || context.me; |
| 8104 | target.addEventListener( |
| 8105 | evt, |
| 8106 | () => { |
| 8107 | this.toggle(context, on, classRef, classRef2, classRefs, betweenValues); |
| 8108 | resolve(this.findNext(context)); |
| 8109 | }, |
| 8110 | { once: true } |
| 8111 | ); |
| 8112 | this.toggle(context, on, classRef, classRef2, classRefs, betweenValues); |
| 8113 | }); |
| 8114 | } else { |
| 8115 | this.toggle(context, on, classRef, classRef2, classRefs, betweenValues); |
| 8116 | return this.findNext(context); |
| 8117 | } |
| 8118 | } |
| 8119 | }; |
| 8120 | var HideCommand = class _HideCommand extends VisibilityCommand { |
| 8121 | static keyword = "hide"; |
nothing calls this directly
no test coverage detected