Remove the onload scale event trigger

This commit is contained in:
Kevin MacMartin 2015-06-30 17:21:18 -04:00
parent cdeb6371a7
commit 82e8f01a65

View file

@ -73,7 +73,6 @@ function containElement(options) {
// Run the scale function and bind it to various window-size-changing events // Run the scale function and bind it to various window-size-changing events
scaleElement(); scaleElement();
window.onload = function(event) { scaleElement(); };
window.onresize = function(event) { scaleElement(); }; window.onresize = function(event) { scaleElement(); };
screen.addEventListener('orientationchange', function() { scaleElement(); }); screen.addEventListener('orientationchange', function() { scaleElement(); });
} }