-
JavaScript CallBack
ComponentOne.js function ComponentOneClass(parent) { this.Parent = parent; var thisClass = this; //Properties this.responseCallback = null; }; ComponentOneClass.prototype.ProcessAction = function(theValue) { if(theValue){ this.responseCallback("Callback return"); }else{ Ti.API.log("Get Error"); }; }; ComponentOneClass.prototype.CallOtherMethod = function(theValue,theCallback) { this.responseCallback = theCallback; theProcess = this.ProcessAction(theValue); }; //finally, export the module module.…