ChildOfCode


Code, Maker, Robotic, Open Source. Knowledge Bases


Tag: CallBack


  1. 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.…

    mobile, JavaScript, Titanium, CallBack