From 7e9fa72a3137624db14553393668c0a283d0da25 Mon Sep 17 00:00:00 2001 From: Luke Evers Date: Wed, 1 Jul 2015 11:30:28 -0400 Subject: [PATCH] Remove callbacks in examples. There's no need to put a function in a callback if we're doing absolutely nothing else with either callbacks. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }; ```