This is code:
chrome.tabs.getSelected(null, function (abcd) {
alert(abcd.index));
});
I wonder know how this tab object ‘abcd’ is transfered to callback function from parent ‘getSelected’ method?
Where is this ‘abcd’ generate from?
If understood correctly,
getSelected()function might look like this(the names of underlying functions are fictional)