From f4b41625cf51b65dec317e50b0791da1655f051c Mon Sep 17 00:00:00 2001 From: Bala Clark Date: Tue, 6 Sep 2011 12:49:59 +0200 Subject: [PATCH] updated basic example to actually redraw on window resize --- examples/basic.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/basic.html b/examples/basic.html index aed0f7c..e9b3da7 100755 --- a/examples/basic.html +++ b/examples/basic.html @@ -41,7 +41,9 @@ ); book.draw(); - window.onresize = book.drawPage; + $(window).resize(function(event) { + book.draw(); + });