From 82e8f01a65255093a0d9157d139a0afcd7142710 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Tue, 30 Jun 2015 17:21:18 -0400 Subject: [PATCH] Remove the onload scale event trigger --- contain-element.js | 1 - 1 file changed, 1 deletion(-) diff --git a/contain-element.js b/contain-element.js index 09e376b..1af648e 100644 --- a/contain-element.js +++ b/contain-element.js @@ -73,7 +73,6 @@ function containElement(options) { // Run the scale function and bind it to various window-size-changing events scaleElement(); - window.onload = function(event) { scaleElement(); }; window.onresize = function(event) { scaleElement(); }; screen.addEventListener('orientationchange', function() { scaleElement(); }); }