Skip to content
This repository has been archived by the owner on Jan 16, 2021. It is now read-only.

Commit

Permalink
Removed some unnecessary logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ncla committed Aug 3, 2015
1 parent 5ad3f8f commit cb17a1a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions app/inject.js
Original file line number Diff line number Diff line change
Expand Up @@ -651,12 +651,10 @@ var itemObs = new MutationObserver(function(records) {
}
}
if(records[i].addedNodes && records[i].addedNodes.length && records[i].target.id == 'ajaxCont' && records[i].target.className == 'full') {
console.time('init item obj');
initiateItemObjectForElementList($('#ajaxCont.full .oitm'), true);
console.timeEnd('init item obj');

var betHistoryColSett = LoungeUser.userSettings.betHistoryTotalColumn;
if(['1', '2'].indexOf(betHistoryColSett) !== -1) {
console.time('table');
$('table tbody tr:visible').each(function(i, v) {
var status = -1;
var text = '-';
Expand Down Expand Up @@ -690,11 +688,9 @@ var itemObs = new MutationObserver(function(records) {
var newTd = $('<td></td>').text(text);
$('td:eq(5)', v).after(newTd);
});
console.timeEnd('table');

// Adjust the column width because we added another column
console.time('colspan');
$('table td[colspan=5]').attr('colspan', '6');
console.timeEnd('colspan');
}

}
Expand Down

0 comments on commit cb17a1a

Please sign in to comment.