mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-22 18:56:00 +02:00
* Code cleanup. WIP theme stuff. Better CPR handling, etc.
This commit is contained in:
parent
7cfe72d53b
commit
1ef9a4a1ce
11 changed files with 147 additions and 125 deletions
|
@ -94,8 +94,13 @@ View.prototype.setPosition = function(pos) {
|
|||
assert(!(isNaN(this.position.x)));
|
||||
assert(!(isNaN(this.position.y)));
|
||||
|
||||
assert(this.position.x > 0 && this.position.x < this.client.term.termHeight);
|
||||
assert(this.position.y > 0 && this.position.y < this.client.term.termWidth);
|
||||
assert(
|
||||
this.position.x > 0 && this.position.x <= this.client.term.termHeight,
|
||||
'X position ' + this.position.x + ' out of terminal range ' + this.client.term.termHeight);
|
||||
|
||||
assert(
|
||||
this.position.y > 0 && this.position.y <= this.client.term.termWidth,
|
||||
'Y position ' + this.position.y + ' out of terminal range ' + this.client.term.termWidth);
|
||||
};
|
||||
|
||||
View.prototype.getColor = function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue