Skip to content
Snippets Groups Projects
Commit 2f596c37 authored by mcmlxxix's avatar mcmlxxix
Browse files

remove "text" argument (unused)

parent 9f25338a
No related branches found
No related tags found
No related merge requests found
...@@ -3,11 +3,10 @@ if(js.global.getColor == undefined) ...@@ -3,11 +3,10 @@ if(js.global.getColor == undefined)
if(js.global.Frame == undefined) if(js.global.Frame == undefined)
js.global.load(js.global,"frame.js"); js.global.load(js.global,"frame.js");
function InputLine(frame,text) { function InputLine(frame) {
/* private properties */ /* private properties */
var properties = { var properties = {
frame:undefined, frame:undefined,
text:undefined,
attr:undefined, attr:undefined,
cursor:undefined, cursor:undefined,
buffer:[] buffer:[]
...@@ -20,7 +19,7 @@ function InputLine(frame,text) { ...@@ -20,7 +19,7 @@ function InputLine(frame,text) {
cursor_attr:BG_LIGHTGRAY|BLACK, cursor_attr:BG_LIGHTGRAY|BLACK,
cursor_char:"_", cursor_char:"_",
timeout:10, timeout:10,
max_buffer:200, max_buffer:200
}; };
/* protected properties */ /* protected properties */
...@@ -108,6 +107,9 @@ function InputLine(frame,text) { ...@@ -108,6 +107,9 @@ function InputLine(frame,text) {
if(properties.cursor) if(properties.cursor)
properties.cursor.top(); properties.cursor.top();
} }
this.cycle = function() {
properties.frame.cycle();
}
this.close = function() { this.close = function() {
properties.frame.close(); properties.frame.close();
} }
...@@ -257,11 +259,9 @@ function InputLine(frame,text) { ...@@ -257,11 +259,9 @@ function InputLine(frame,text) {
reset(); reset();
return cmd; return cmd;
} }
function init(frame,text) { function init(frame) {
if(frame instanceof Frame) if(frame instanceof Frame)
properties.frame=frame; properties.frame=frame;
if(text)
properties.text = text;
} }
init.apply(this,arguments); init.apply(this,arguments);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment