mirror of
https://github.com/WilliamsNY/contain-element.git
synced 2024-11-23 22:24:10 -05:00
Remove the event variable from the onresize example
This commit is contained in:
parent
315f245c9c
commit
67a46e4677
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ window.onload = function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
// (example) update the size and positioning on window resize
|
// (example) update the size and positioning on window resize
|
||||||
window.onresize = function(event) { contain.update(); };
|
window.onresize = function() { contain.update(); };
|
||||||
|
|
||||||
// (example) update the size and positioning on orientation change
|
// (example) update the size and positioning on orientation change
|
||||||
screen.addEventListener('orientationchange', function() { contain.update(); });
|
screen.addEventListener('orientationchange', function() { contain.update(); });
|
||||||
|
|
Loading…
Reference in a new issue