correct polygon2d saving and editing
This commit is contained in:
@@ -392,14 +392,6 @@ Object.defineProperty(Array.prototype, 'rotate', {
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Object.defineProperty(Array.prototype, '$add', {
|
||||
value: function(b) {
|
||||
for (var i = 0; i < this.length; i++) {
|
||||
this[i] += b[i];
|
||||
}
|
||||
}});
|
||||
|
||||
function setelem(n) {
|
||||
return {
|
||||
get: function() { return this[n]; },
|
||||
@@ -421,7 +413,6 @@ arrsetelem('g', 1);
|
||||
arrsetelem('b', 2);
|
||||
arrsetelem('a', 3);
|
||||
|
||||
|
||||
Object.defineProperty(Array.prototype, 'add', {
|
||||
value: function(b) {
|
||||
var c = [];
|
||||
|
||||
Reference in New Issue
Block a user