From 89391b0cb321beedeefb3b879599089fb1188bd7 Mon Sep 17 00:00:00 2001 From: Koichi KAMICHI Date: Thu, 19 Feb 2009 07:09:25 +0000 Subject: [PATCH] Added a function to clear data of polygons array. --- engine/polygons.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/engine/polygons.js b/engine/polygons.js index 5e3c8b8..a52305c 100755 --- a/engine/polygons.js +++ b/engine/polygons.js @@ -1,5 +1,10 @@ function Polygons(){ // method + function clear(){ // void + this.array = new Array(); + } + Polygons.prototype.clear = clear; + function push(polygon){ // void // only a simple check var minx = 200; -- 1.7.10.4