Where is the isOpen() method?

In the main engine code, in Window_Base there is this method:

Window_Base.prototype.open = function() {
if (!this.isOpen()) {
this._opening = true;
}
this._closing = false;
};


I tried looking for the isOpen() method to see exactly what it was checking, but even a search of all .js files comes up with nothing. Does anyone know where isOpen() is defined?
it's a javascript default method. return true if the object window is open...
It's not a javascript default method, but it is one of the functions of rpg_core.js:

Code:
/**
 * Returns true if the window is completely open (openness == 255).
 *
 * @method isOpen
 */
Window.prototype.isOpen = function() {
    return this._openness >= 255;
};
lol, so true! 🤣
Guess I need some rest... :headshake:
Aha, there it is in rpg_core! Not only that, it really helps with what I'm trying to do.

I googled JavaScript default and pixi.js functions, and thought I searched the rpg maker files properly. I even found a todo note to some dev called Ivan that was accidentally left in rpg_scenes.js, but not isOpen.

Anyway, that was poor global searching on my part, thanks a lot for your help!


*edit*
still failing at searches today... where the heck is the 'mark as solved' button?
In the main engine code, in Window_Base there is this method:

Window_Base.prototype.open = function() {
if (!this.isOpen()) {
this._opening = true;
}
this._closing = false;
};


I tried looking for the isOpen() method to see exactly what it was checking, but even a search of all .js files comes up with nothing. Does anyone know where isOpen() is defined?
A neat trick for solving this in the future: use the chrome debugger and put a breakpoint just before the .isopen, then when it hits the breakpoint, advance step-by-step into the .isOpen function that gets called
Great tip, thanks!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/where-is-the-isopen-method.123584/