diff --git a/README.md b/README.md index fdd514f..1f094c0 100644 --- a/README.md +++ b/README.md @@ -26,10 +26,10 @@ window.onload = function() { }); // (example) update the size and positioning on window resize - window.onresize = function() { contain.update(); }; + window.onresize = contain.update; // (example) update the size and positioning on orientation change - screen.addEventListener('orientationchange', function() { contain.update(); }); + screen.addEventListener('orientationchange', contain.update); }; ```