From: Koichi KAMICHI Date: Thu, 19 Feb 2009 07:09:25 +0000 (+0000) Subject: Added a function to clear data of polygons array. X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=89391b0cb321beedeefb3b879599089fb1188bd7;p=chise%2Fkage.git Added a function to clear data of polygons array. --- 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;