Added a function to clear data of polygons array.
authorKoichi KAMICHI <kamichi@fonts.jp>
Thu, 19 Feb 2009 07:09:25 +0000 (07:09 +0000)
committerKoichi KAMICHI <kamichi@fonts.jp>
Thu, 19 Feb 2009 07:09:25 +0000 (07:09 +0000)
engine/polygons.js

index 5e3c8b8..a52305c 100755 (executable)
@@ -1,5 +1,10 @@
 function Polygons(){\r
   // method\r
+       function clear(){ // void\r
+    this.array = new Array();\r
+  }\r
+  Polygons.prototype.clear = clear;\r
+       \r
   function push(polygon){ // void\r
     // only a simple check\r
     var minx = 200;\r