Remove the event variable from the onresize example

This commit is contained in:
Kevin MacMartin 2015-06-30 18:03:42 -04:00
parent 315f245c9c
commit 67a46e4677

View file

@ -26,7 +26,7 @@ window.onload = function() {
});
// (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
screen.addEventListener('orientationchange', function() { contain.update(); });