Update to podcast frontend

This commit is contained in:
Duncan Sommerville 2015-09-28 10:40:04 -04:00
parent febc5fa99d
commit 375d83ab43
6 changed files with 62 additions and 27 deletions

View file

@ -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];
};
/**