From be7ccdbe172850e9ea2bf2da93f31917298c504e Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Thu, 28 Apr 2011 21:18:10 +0200 Subject: [PATCH] Flock example: fix small bug. --- examples/Animated/Flock.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/Animated/Flock.html b/examples/Animated/Flock.html index 2cb4863e..23b6522e 100644 --- a/examples/Animated/Flock.html +++ b/examples/Animated/Flock.html @@ -282,7 +282,8 @@ // Resize the document, whenever the window is resized, window.onresize = function(event) { - size = document.size = [window.innerWidth, window.innerHeight]; + document.size = [window.innerWidth, window.innerHeight]; + size = document.size; heartPath.position = document.bounds.center; document.redraw(); }