mirror of
https://github.com/WilliamsNY/contain-element.git
synced 2024-11-23 14:14:10 -05:00
Remove the onload scale event trigger
This commit is contained in:
parent
cdeb6371a7
commit
82e8f01a65
1 changed files with 0 additions and 1 deletions
|
@ -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(); });
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue