Window Sanity Check

I need someone familiar with creating window/scenes to check this code and see what is missing. Ok, first I guess I should state what this is for and what is not working, hence the need for this post.

This is another one of my RPG Maker XP game scripts that I am converting (one of SephirothSpawn's this time) to javascript for an MV plugin.

What I am attempting to do is to create a custom scene, set up several windows in it that show various stuff related to class changing, and then display said windows.

So far I am getting the scene to show up but the first window I am testing is not showing up (screen goes fuzzy as if in a new scene, but no windows).

I will just post the related code as I have a bunch of commented out Ruby in the file from the script.

Code:
//Scene for class change
function Scene_ClassChange(){
   this.initialize.apply(this,arguments);
}

//Window which will display class requirements
function Window_ClassInformation(){
   this.initialize.apply(this,arguments);
}

//Window which will contain a list of all classes formatted based on ability to change to them
function Window_ClassList(){
   this.initialize.apply(this,arguments);   
}

//Window which will show currently selected actors status
function Window_ClassChangeStatus(){
   this.initialize.apply(this,arguments);
}

//Window that contains the commands
function Window_CCCommand(){
   this.initialize.apply(this,arguments);
}

//Window which will display actor's current classes and levels
function Window_CCActorClasses(){
   this.initialize.apply(this,arguments);
}

....

Scene_ClassChange.prototype = Object.create(Scene_MenuBase.prototype);
   Scene_ClassChange.prototype.constructor = Scene_ClassChange;

   Scene_ClassChange.prototype.initialize = function(){
       Scene_MenuBase.prototype.initialize.call(this);

       ImageManager.loadFace($gameParty.menuActor().faceName());
   };

   Scene_ClassChange.prototype.create = function(){
       Scene_MenuBase.prototype.create.call(this);

       this.createClassListWindow();
       //this.createStatusWindow();
       //this.createActorClassWindow();
       //this.createRequirementsWindow();
       //this.createCommandWindow();
       this.refreshActor();
   };

   Scene_ClassChange.prototype.createClassListWindow = function(){
       const winX = 0;
       const winY = Graphics.boxHeight;
       const winW = 200;

       this._clsLstWnd = new Window_ClassList(winX,winY,winW,250);
       this._clsLstWnd.setHandler('ok', this.onClsWndSelected.bind(this));
       this._clsLstWnd.setHandler('cancel', this.popScene.bind(this));
       this.addWindow(this._clsLstWnd);
   };

   Scene_ClassChange.prototype.onClsWndSelected = function(){
       /*this._reqWnd.setSelectedClass(this._clsLstWnd.index());
       this._comWnd.setSelectedClass(this._clsLstWnd.index());

       this._statWnd.activate();
       this._actClsWnd.activate();
       this._reqWnd.activate();
       this._comWnd.selectLast();
       this._comWnd.activate();

       this._comWnd.setHandler('chngcls',this.changeClass.bind(this));
       this._comWnd.setHandler('cancel',this.cancel.bind(this));*/
   }

   Scene_ClassChange.prototype.createStatusWindow = function(){
       const winX = this._clsLstWnd.width;
       const winY = 150;
       const winW = 325;

       this._statWnd = new Window_ClassChangeStatus(winX,winY,winW);
       this.addWindow(this._statWnd);
   };   

   Scene_ClassChange.prototype.createActorClassWindow = function(){
       const winX = this._statWnd.width;
       const winY = this._statWnd.y;

       this._actClsWnd = new Window_CCActorClasses(winX,winY);
       this.addWindow(this._actClsWnd);
   };

   Scene_ClassChange.prototype.createRequirementsWindow = function(){
       const winX = this._clsLstWnd.width;
       const winY = this._statWnd.height;

       this._reqWnd = new Window_ClassInformation(winX,winY);
       this.addWindow(this._reqWnd);
   };

   Scene_ClassChange.prototype.createCommandWindow = function(){
       const winY = this._reqWnd.height;
       const winX = this._clsLstWnd.width;

       this._comWnd = new Window_CCCommand(winX,winY);
       this.addWindow(this._comWnd);
   };

   Scene_ClassChange.prototype.refreshActor = function(){
       const actor = this.actor();

       //this._comWnd.setActor(actor);
       //this._statWnd.setActor(actor);
       //this._actClsWnd.setActor(actor);
       //this._reqWnd.setActor(actor);
   };

   Scene_ClassChange.prototype.changeClass = function(){
       const actor = this.actor();

       this._comWnd.deselect();
       this._clsLstWnd.select();

       this._statWnd.setActor(actor);
       this._actClsWnd.setActor(actor);
   };

   Scene_ClassChange.prototype.cancel = function(){
       this._comWnd.deselect();
       this._clsLstWnd.select();
   };


/* Window ClassList */

Window_ClassList.prototype = Object.create(Window_Selectable.prototype);
Window_ClassList.prototype.constructor = Window_ClassList;

Window_ClassList.prototype.initialize = function(x,y,w,h){
   Window_Selectable.prototype.initialize.call(this,x,y,w,h);
   this._actor = null;
   this._winWdth = w;
   //this._winHgt =

   this._cIX = 0;
   this._cIY = 0;
   this._cIW = 60;

   this._pendingIndex = -1;
   this.refresh();
};

Window_ClassList.prototype.maxItems = function(){
   return Object.keys(classReqJSON).length;
};

Window_ClassList.prototype.itemHeight = function(){
   var cliHight = this.height - this.padding * 2;
   return Math.floor(cliHight/this.numVisibleRows());
};

Window_ClassList.prototype.numVisibleRows = function(){
   return 10;
}

Window_ClassList.prototype.drawItem = function(index){
   this.drawClassItem(index,this._cIX,this._cIY,this._cIW);
   this._cIX += 45;
}

Window_ClassList.prototype.drawClassItem = function(index,x,y,w){
   var clsId = index;

   this.drawText($dataClasses[clsId],x,y,w);
}

Window_ClassList.prototype.setActor = function(actor){
   if (this._actor !== actor){
       this._actor= actor;
       this.refreshList();
       this.refresh();
   }
};

Window_ClassList.prototype.selectLast = function(){
   this.select(this.index() || 0);
}

Window_ClassList.prototype.processOk = function(){
   Window_Selectable.prototype.processOk.call(this);
}

Window_ClassList.prototype.pendingIndex = function(){
   return this._pendingIndex;
}

Window_ClassList.prototype.setPendingIndex = function(index){
   var lstPendIndex = this._pendingIndex;
   this._pendingIndex = index;
   this.redrawItem(this._pendingIndex);
   this.redrawItem(lstPendIndex);
}
....

There are no errors in the console and I have done some debugging within the console window and did not find anything that was spitting out NaNs or undefineds once I got some issues worked out. I think I am missing some function call somewhere but I am not sure.
What are these four dots you have there two times?
Edit: You haven't defined height, what would you expect to see?
Window_ClassList.prototype.initialize = function(x,y,w,h){
Window_Selectable.prototype.initialize.call(this,x,y,w,h);
this._actor = null;
this._winWdth = w;
//this._winHgt =

this._cIX = 0;
this._cIY = 0;
this._cIW = 60;

this._pendingIndex = -1;
this.refresh();
};
What are these four dots you have there two times?
Edit: You haven't defined height, what would you expect to see?
Window_ClassList.prototype.initialize = function(x,y,w,h){
Window_Selectable.prototype.initialize.call(this,x,y,w,h);
this._actor = null;
this._winWdth = w;
//this._winHgt =

this._cIX = 0;
this._cIY = 0;
this._cIW = 60;

this._pendingIndex = -1;
this.refresh();
};


ellipses are used to indicate irrelevant code that was left out of a post.

As for your question, I am passing the height through the scene create window function as per the below call to the constructor for Window_ClassList:

Code:
 this._clsLstWnd = new Window_ClassList(winX,winY,winW,250);


Nevermind I just figured it out. I have had a suspicion for a few days that the winY var I set in the Scene_ClassChange.prototype.createClassListWindow function was incorrect. Just changed it to 0 instead of graphicsBox.height and the window shows. Now I have to fix the contents so it shows properly. D:

Original thread: https://forums.rpgmakerweb.com/threads/window-sanity-check.87984/