Quote:
Mojo.Controller.StageController.popScene(returnValue, options)
Removes a scene from the scene stack, passing the return value to the newly revealed scene's activate method. Note that this is an asynchronous operation.
Parameters:{Object} returnValue Value passed to the next scene active method
options
|
Above is the Quick Reference to the popScene function and apparently it only allows for the passing of one variable... Has anyone find a way around this? What are the options???? I am trying to pass two variables to the function this way...
Quote:
ProcessAssistant.prototype.handleCommand =function(event){if(event.type === Mojo.Event.back) {
this.controller.stageController.popScene(this.checkboxPD,this.checkboxBR);
}
}
|
The Activate Function [the receiving function] in the Main-assistant.js is as follows...
Quote:
MainAssistant.prototype.activate = function(returnValue1, returnValue2) {this.cbPD = returnValue1;
this.cbBR = returnValue2;
if(this.cbPD != undefined){
this.controller.get("announcement").update("Phone data is checked: "+this.cbPD.value +"<br>Browser data is checked: " + this.cbBR.value);
}
}
|