Is there a way to put a callback on a getController so that the next line of code in the function doesn't execute until the call to the other controller returns a value?
for example if you want to do something like this:
var myVar = this.getContoller('myControler2').onSomeFunction(a , b);
if(myVar === "returned from getController value"){
//do something
}else{
//do something else
}
for example if you want to do something like this:
var myVar = this.getContoller('myControler2').onSomeFunction(a , b);
if(myVar === "returned from getController value"){
//do something
}else{
//do something else
}
Comment