From 06f5a3fd94e37b4cfed2eb4a10eb2fe42a681a93 Mon Sep 17 00:00:00 2001 From: Nick Krichevsky Date: Thu, 26 Feb 2015 13:35:04 -0500 Subject: [PATCH] Remove some unnecessary console.logs --- background.js | 1 - popup.js | 7 ------- 2 files changed, 8 deletions(-) diff --git a/background.js b/background.js index 41f3da8..8179e60 100644 --- a/background.js +++ b/background.js @@ -113,7 +113,6 @@ chrome.tabs.onUpdated.addListener(function(tabId,changeInfo,resultingTab){ 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 chrome.tabs.get(tabId,function(currentTab){ - console.log(currentTab); tab.window.tabs[tab.index] = currentTab; saveWindows(); }); diff --git a/popup.js b/popup.js index f983850..60a5c3a 100644 --- a/popup.js +++ b/popup.js @@ -186,9 +186,7 @@ function setupTabs(tabs,callback){ var mouseListenerFunction = function(event){ //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){ - console.log("Adding!"); closeButton.classList.add('fakeHover'); - console.log(closeButton.classList); } else{ closeButton.classList.remove('fakeHover'); @@ -305,7 +303,6 @@ document.addEventListener('DOMContentLoaded', function() { event.stopPropagation(); } if (event.keyCode===16){ - console.log("shift pressed!"); shiftDown = true; } }); @@ -357,7 +354,6 @@ document.addEventListener('DOMContentLoaded', function() { var tabList = windowKeyIndex>=0 ? createTabList(mainList,windowKeyIndex) : null; //Track if shift is pressed if (event.keyCode===16){ - console.log("shift pressed!"); shiftDown = true; } @@ -391,7 +387,6 @@ document.addEventListener('DOMContentLoaded', function() { windowKeyIndex+=1; windowList[windowKeyIndex].classList.add('keyHover'); tabKeyIndex+=1; - console.log(windowList[windowKeyIndex].getBoundingClientRect().bottom); if (windowList[windowKeyIndex].querySelector('span.textContent').getBoundingClientRect().bottom<=0){ scrollTo(0, windowList[windowKeyIndex].getBoundingClientRect().top); } @@ -447,7 +442,6 @@ document.addEventListener('DOMContentLoaded', function() { windowList[windowKeyIndex].classList.add('keyHover'); if (windowList[windowKeyIndex].querySelector('span.textContent').getBoundingClientRect().top<=0){ 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); } } @@ -551,7 +545,6 @@ document.addEventListener('DOMContentLoaded', function() { window.addEventListener('keyup', function(event){ //Track if shift is released if (event.keyCode===16){ - console.log("shift released"); shiftDown = false; } });