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.
This commit is contained in:
Luke Evers 2015-07-01 11:30:28 -04:00
parent 3183927aac
commit 7e9fa72a31

View file

@ -26,10 +26,10 @@ window.onload = function() {
}); });
// (example) update the size and positioning on window resize // (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 // (example) update the size and positioning on orientation change
screen.addEventListener('orientationchange', function() { contain.update(); }); screen.addEventListener('orientationchange', contain.update);
}; };
``` ```