Skip to content

Commit

Permalink
removed irrelevant comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bjdodson committed Feb 23, 2010
1 parent 7ac278a commit 4bb7f9b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions jinzora.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,14 @@ var homelink = jz.catalog;

var APIPos = -1;
var APICalls = new Array();
function callBrowseAPI(service, skipHistory) { // opt request
function callBrowseAPI(service, skipHistory) {
if (!skipHistory) {
APIPos++;
APICalls.length = APIPos;
APICalls.push(service);
}
$.getJSON(service,
// parametrize this.
function(data){
// this syntax works well even for asynchronous results,
// where the size of data is not stable.
// We probably have to change this outer function to
// be intended for a single item from a list of items.
// compare speed with array iteration
$('#browseBodyDiv').empty();

if (data.tracks && data.tracks.length > 0) {
Expand Down

0 comments on commit 4bb7f9b

Please sign in to comment.