Update to podcast frontend
This commit is contained in:
parent
febc5fa99d
commit
375d83ab43
6 changed files with 62 additions and 27 deletions
|
@ -316,12 +316,12 @@ var AIRTIME = (function(AIRTIME){
|
|||
/**
|
||||
* Given a tab id, get the corresponding Tab object
|
||||
*
|
||||
* @param {int} id the tab id of the Tab to retrieve
|
||||
* @returns {Tab|undefined} the Tab object with the given id, or undefined
|
||||
* if no Tab with the given id exists
|
||||
* @param {int|string} id the tab or object ID of the Tab to retrieve
|
||||
* @returns {Tab|undefined} the Tab object with the given ID, or undefined
|
||||
* if no Tab with the given ID exists
|
||||
*/
|
||||
mod.get = function(id) {
|
||||
return $openTabs[$tabMap[id]];
|
||||
return $.isNumeric(id) ? $openTabs[$tabMap[id]] : $openTabs[id];
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue