From 08d08ba56736d1f0109229a5ec100a0f18fc7b64 Mon Sep 17 00:00:00 2001 From: Cory Brown Date: Mon, 24 Nov 2014 10:52:58 -0700 Subject: [PATCH] remove logs --- fitit.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fitit.js b/fitit.js index 476e5c5..a32a800 100644 --- a/fitit.js +++ b/fitit.js @@ -45,10 +45,8 @@ Usage: fitIt() height = parseInt(styles.height, 10), ratio = width/height; - // vid.onload = function () { console.log('vid loaded', vid);}; vid.dataset.ratio = ratio; vid.style.width = '100%'; - console.log('removing width from ', vid.nodeName, vid); vid.removeAttribute('width'); vid.removeAttribute('height'); resize(vid); @@ -71,7 +69,7 @@ Usage: fitIt() } window.addEventListener('resize', function () { - //This should be more optimized. + //TODO: Debounce this? [].slice.call(document.querySelectorAll(selector)).forEach(resize); }); };