Consolidate Viewdata/ANSItex specific modules to use consistent method names, our session is now initialised at startup as either
This commit is contained in:
@@ -431,7 +431,7 @@ function rawtoattrs(contents,width,yoffset,xoffset,debug) {
|
||||
load('ansitex/load/session.js');
|
||||
|
||||
// Our frame object
|
||||
function SessionAnsitex() {
|
||||
function SessionProtocol() {
|
||||
Session.apply(this,arguments);
|
||||
|
||||
this.settings.MSG_SENDORNOT = '\1n\1h\1GKEY 1 TO SEND, 2 NOT TO SEND';
|
||||
@@ -590,5 +590,5 @@ function SessionAnsitex() {
|
||||
};
|
||||
}
|
||||
|
||||
SessionAnsitex.prototype = Session.prototype;
|
||||
SessionAnsitex.prototype.constructor = SessionAnsitex;
|
||||
SessionProtocol.prototype = Session.prototype;
|
||||
SessionProtocol.prototype.constructor = SessionProtocol;
|
||||
|
@@ -435,7 +435,7 @@ function rawtoattrs(contents,width,yoffset,xoffset,debug) {
|
||||
load('ansitex/load/session.js');
|
||||
|
||||
// Our frame object
|
||||
function SessionViewdata() {
|
||||
function SessionProtocol() {
|
||||
Session.apply(this,arguments);
|
||||
|
||||
this.settings.MSG_SENDORNOT = ascii(27)+'BKEY 1 TO SEND, 2 NOT TO SEND';
|
||||
@@ -674,5 +674,5 @@ function videotex(data) {
|
||||
return output;
|
||||
}
|
||||
|
||||
SessionViewdata.prototype = Session.prototype;
|
||||
SessionViewdata.prototype.constructor = SessionViewdata;
|
||||
SessionProtocol.prototype = Session.prototype;
|
||||
SessionProtocol.prototype.constructor = SessionProtocol;
|
||||
|
Reference in New Issue
Block a user