Added code to extract the machine XML version number when running DEBUG-only

This commit is contained in:
Jeff Parsons 2015-07-28 12:45:29 -07:00
commit 2e89c38e4a
7 changed files with 2096 additions and 2080 deletions

View file

@ -1241,6 +1241,11 @@ Computer.prototype.getComponentByType = function(sType, componentPrev)
*/
Computer.init = function()
{
/*
* In DEBUG builds, embedMachine() may have set DEBUG_APPVERSION.
*/
if (DEBUG && DEBUG_APPVERSION) Computer.sAppVer = DEBUG_APPVERSION;
var aeMachines = Component.getElementsByClass(window.document, PCJSCLASS + "-machine");
for (var iMachine = 0; iMachine < aeMachines.length; iMachine++) {