Skip to content

Commit

Permalink
remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
uniqname committed Nov 24, 2014
1 parent 54365df commit 08d08ba
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fitit.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,8 @@ Usage: fitIt(<selector>)
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);
Expand All @@ -71,7 +69,7 @@ Usage: fitIt(<selector>)
}

window.addEventListener('resize', function () {
//This should be more optimized.
//TODO: Debounce this?
[].slice.call(document.querySelectorAll(selector)).forEach(resize);
});
};
Expand Down

0 comments on commit 08d08ba

Please sign in to comment.