mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-09 22:24:35 +02:00
* VC.setFocus(): Attaches/detaches events/etc.
This commit is contained in:
parent
f348e06d86
commit
65ad2ffdd1
3 changed files with 13 additions and 15 deletions
|
@ -426,7 +426,6 @@ function display(options, cb) {
|
|||
var generatedId = 100;
|
||||
|
||||
var cprListener = function(pos) {
|
||||
console.log(pos)
|
||||
if(mciPosQueue.length > 0) {
|
||||
var forMapItem = mciPosQueue.shift();
|
||||
mciMap[forMapItem].position = pos;
|
||||
|
@ -438,7 +437,6 @@ function display(options, cb) {
|
|||
};
|
||||
|
||||
function completed() {
|
||||
console.log('completed')
|
||||
options.client.removeListener('cursor position report', cprListener);
|
||||
parser.removeAllListeners(); // :TODO: Necessary???
|
||||
|
||||
|
@ -509,7 +507,6 @@ function display(options, cb) {
|
|||
|
||||
mciPosQueue.push(mapKey);
|
||||
|
||||
console.log('querying pos...')
|
||||
options.client.term.rawWrite(ansi.queryPos());
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue