XY MCI code now properly c reates vanilla view for later lookup/retrieval

This commit is contained in:
Bryan Ashby 2018-07-04 14:59:15 -06:00
parent f4afe9847d
commit 0f6924a916
1 changed files with 5 additions and 0 deletions

View File

@ -3,6 +3,7 @@
// ENiGMA½
const TextView = require('./text_view.js').TextView;
const View = require('./view.js').View;
const EditTextView = require('./edit_text_view.js').EditTextView;
const ButtonView = require('./button_view.js').ButtonView;
const VerticalMenuView = require('./vertical_menu_view.js').VerticalMenuView;
@ -186,6 +187,10 @@ MCIViewFactory.prototype.createFromMCI = function(mci) {
view = new KeyEntryView(options);
break;
case 'XY' :
view = new View(options);
break;
default :
options.text = getPredefinedMCIValue(this.client, mci.code);
if(_.isString(options.text)) {