projects
/
chise
/
kage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae7e26d
)
Added a function to clear data of polygons array.
author
Koichi KAMICHI
<kamichi@fonts.jp>
Thu, 19 Feb 2009 07:09:25 +0000
(07:09 +0000)
committer
Koichi KAMICHI
<kamichi@fonts.jp>
Thu, 19 Feb 2009 07:09:25 +0000
(07:09 +0000)
engine/polygons.js
patch
|
blob
|
history
diff --git
a/engine/polygons.js
b/engine/polygons.js
index
5e3c8b8
..
a52305c
100755
(executable)
--- a/
engine/polygons.js
+++ b/
engine/polygons.js
@@
-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