MCPcopy Create free account
hub / github.com/FSGModding/FSG_Mod_Assistant / safeClose

Method safeClose

lib/modAssist_window_lib.js:461–465  ·  view source on GitHub ↗

* Safely close a window * @param {string} name window

(name)

Source from the content-addressed store, hash-verified

459 * @param {string} name window
460 */
461 safeClose(name) {
462 if ( this.isValid(name) && this.isVisible(name) ) {
463 this.win[name].close()
464 }
465 }
466
467 /**
468 * Safely close all sub windows

Callers 2

toggleMiniWindowFunction · 0.80
createMainWindowMethod · 0.80

Calls 3

isValidMethod · 0.80
isVisibleMethod · 0.80
closeMethod · 0.80

Tested by

no test coverage detected