Remove some unnecessary console.logs

This commit is contained in:
Nick Krichevsky 2015-02-26 13:35:04 -05:00
parent acb0b884b2
commit 06f5a3fd94
2 changed files with 0 additions and 8 deletions

View file

@ -113,7 +113,6 @@ chrome.tabs.onUpdated.addListener(function(tabId,changeInfo,resultingTab){
var tab = findTabById(resultingTab.windowId, tabId); var tab = findTabById(resultingTab.windowId, tabId);
// tab.window.tabs[tab.index] = resultingTab; //Old method that worked, but was weird on some pages such a gist // tab.window.tabs[tab.index] = resultingTab; //Old method that worked, but was weird on some pages such a gist
chrome.tabs.get(tabId,function(currentTab){ chrome.tabs.get(tabId,function(currentTab){
console.log(currentTab);
tab.window.tabs[tab.index] = currentTab; tab.window.tabs[tab.index] = currentTab;
saveWindows(); saveWindows();
}); });

View file

@ -186,9 +186,7 @@ function setupTabs(tabs,callback){
var mouseListenerFunction = function(event){ var mouseListenerFunction = function(event){
//If the mouse is within the bounds of the closeButton, highlight it as if it's being hovered. //If the mouse is within the bounds of the closeButton, highlight it as if it's being hovered.
if (event.clientX>=closeButton.getBoundingClientRect().left && event.clientX<=closeButton.getBoundingClientRect().right){ if (event.clientX>=closeButton.getBoundingClientRect().left && event.clientX<=closeButton.getBoundingClientRect().right){
console.log("Adding!");
closeButton.classList.add('fakeHover'); closeButton.classList.add('fakeHover');
console.log(closeButton.classList);
} }
else{ else{
closeButton.classList.remove('fakeHover'); closeButton.classList.remove('fakeHover');
@ -305,7 +303,6 @@ document.addEventListener('DOMContentLoaded', function() {
event.stopPropagation(); event.stopPropagation();
} }
if (event.keyCode===16){ if (event.keyCode===16){
console.log("shift pressed!");
shiftDown = true; shiftDown = true;
} }
}); });
@ -357,7 +354,6 @@ document.addEventListener('DOMContentLoaded', function() {
var tabList = windowKeyIndex>=0 ? createTabList(mainList,windowKeyIndex) : null; var tabList = windowKeyIndex>=0 ? createTabList(mainList,windowKeyIndex) : null;
//Track if shift is pressed //Track if shift is pressed
if (event.keyCode===16){ if (event.keyCode===16){
console.log("shift pressed!");
shiftDown = true; shiftDown = true;
} }
@ -391,7 +387,6 @@ document.addEventListener('DOMContentLoaded', function() {
windowKeyIndex+=1; windowKeyIndex+=1;
windowList[windowKeyIndex].classList.add('keyHover'); windowList[windowKeyIndex].classList.add('keyHover');
tabKeyIndex+=1; tabKeyIndex+=1;
console.log(windowList[windowKeyIndex].getBoundingClientRect().bottom);
if (windowList[windowKeyIndex].querySelector('span.textContent').getBoundingClientRect().bottom<=0){ if (windowList[windowKeyIndex].querySelector('span.textContent').getBoundingClientRect().bottom<=0){
scrollTo(0, windowList[windowKeyIndex].getBoundingClientRect().top); scrollTo(0, windowList[windowKeyIndex].getBoundingClientRect().top);
} }
@ -447,7 +442,6 @@ document.addEventListener('DOMContentLoaded', function() {
windowList[windowKeyIndex].classList.add('keyHover'); windowList[windowKeyIndex].classList.add('keyHover');
if (windowList[windowKeyIndex].querySelector('span.textContent').getBoundingClientRect().top<=0){ if (windowList[windowKeyIndex].querySelector('span.textContent').getBoundingClientRect().top<=0){
var scrollAmount = document.querySelector('body').clientHeight/2 -windowList[windowKeyIndex].querySelector('span.textContent').getBoundingClientRect().bottom; var scrollAmount = document.querySelector('body').clientHeight/2 -windowList[windowKeyIndex].querySelector('span.textContent').getBoundingClientRect().bottom;
console.log(scrollAmount);
scrollBy(0,scrollAmount>windowList[windowKeyIndex].querySelector('span.textContent').clientHeight ? scrollAmount*-1 : windowList[windowKeyIndex].querySelector('span.textContent').clientHeight*-1); scrollBy(0,scrollAmount>windowList[windowKeyIndex].querySelector('span.textContent').clientHeight ? scrollAmount*-1 : windowList[windowKeyIndex].querySelector('span.textContent').clientHeight*-1);
} }
} }
@ -551,7 +545,6 @@ document.addEventListener('DOMContentLoaded', function() {
window.addEventListener('keyup', function(event){ window.addEventListener('keyup', function(event){
//Track if shift is released //Track if shift is released
if (event.keyCode===16){ if (event.keyCode===16){
console.log("shift released");
shiftDown = false; shiftDown = false;
} }
}); });