MCPcopy
hub / github.com/DIYgod/DPlayer / toggle

Method toggle

src/js/controller.js:407–413  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

405 }
406
407 toggle() {
408 if (this.isShow()) {
409 this.hide();
410 } else {
411 this.show();
412 }
413 }
414
415 destroy() {
416 if (!utils.isMobile) {

Callers 3

initPlayButtonMethod · 0.95
initFullButtonMethod · 0.45
initSubtitleButtonMethod · 0.45

Calls 3

isShowMethod · 0.95
hideMethod · 0.95
showMethod · 0.95

Tested by

no test coverage detected