git @ Cat's Eye Technologies yoob.js / 724ba47
When deleting via put()/putDirty(), don't update bounds or write. catseye 12 years ago
1 changed file(s) with 6 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
4040 * location will return this Playfield's default value.
4141 */
4242 this.put = function(x, y, value) {
43 var key = x+','+y;
44 if (value === undefined || value === this._default) {
45 delete this._store[key];
46 return;
47 }
4348 if (this.minX === undefined || x < this.minX) this.minX = x;
4449 if (this.maxX === undefined || x > this.maxX) this.maxX = x;
4550 if (this.minY === undefined || y < this.minY) this.minY = y;
4651 if (this.maxY === undefined || y > this.maxY) this.maxY = y;
47 var key = x+','+y;
48 if (value === undefined || value === this._default) {
49 delete this._store[key];
50 }
5152 this._store[key] = value;
5253 };
5354
6061 var key = x+','+y;
6162 if (value === undefined || value === this._default) {
6263 delete this._store[key];
64 return;
6365 }
6466 this._store[key] = value;
6567 };