I want invoke event after click OK button on popup using remote and mouse (TV app). Do you have any idea how can I get access to arg variable which I get with popup callback (after clicked OK button) by ENTER on remote when I click on this button using mouse?
function PopUp("napis", function callback (arg) {
if (arg === sth)
doSth();
})
$('button').click (function () {
if (arg === sth) //how can I access arg which will be the same with arg in callback function
doSth();
})