var that = this;
....
[sap.ui.commons.MessageBox.Action.YES, sap.ui.commons.MessageBox.Action.NO],
function(){
//that.bagItem(item); In case of controllers method
//bagItem(item); In case of a local function/closure
});
var that = this;
....
[sap.ui.commons.MessageBox.Action.YES, sap.ui.commons.MessageBox.Action.NO],
function(){
//that.bagItem(item); In case of controllers method
//bagItem(item); In case of a local function/closure
});