I have the following piece of code in parent that shows a child modal
exports.itemTap = function(args){
page.showModal("views/loopback/modal","My context here",function closeCallback(isSaved){
console.log(isSaved); //shows undefined on console
},false);
};
and I am closeing the child modal when the save button is clicked here
exports.save = function(args){
closeCallBack(true);
};
As you can see I am passing true as argument to the closeCallback function and printing the argument on the console in the parent but it always shows "undefined" and not "true" as expected. Is it some kind of bug? or I am doing something wrong here. Thanks in anticipation.