The Component printBuffer should only be used by Component static functions
This commit is contained in:
parent
9f99649a87
commit
061c839a33
27 changed files with 344 additions and 265 deletions
|
|
@ -64,7 +64,7 @@ function ab(a){for(var b=!0,c=bb[a];c&&c.length;){var d=c.splice(0,1)[0],e=d[0],
|
|||
h.toString=function(){return this.name?this.name:this.id||this.type};
|
||||
h.ma=function(a,b,c){switch(b){case "clear":return this.o[b]||(this.o[b]=c,c.onclick=function(a){return function(){a.o.print&&(a.o.print.value="")}}(this)),!0;case "print":return this.o[b]||(this.o[b]=c,this.G=function(a){this.aa(a,this.type);return!0},c.value="",this.print=function(a){return function(b){Xa(a,b)}}(c),this.aa=function(a,b){return function(a,c){a||(a="");if(c!=fb.he||"..."!=a.slice(-3))c&&(a=c+": "+a),Xa(b,a+"\n");else{c=b.value;var d=c.lastIndexOf(a);0>d?c+=a+"\n":c=c.substr(0,d)+
|
||||
(a+".")+c.substr(d+a.length);8192<c.length&&(c=c.substr(c.length-4096));b.value=c;b.scrollTop=b.scrollHeight}}}(this,c)),!0;default:return!1}};h.log=function(){};h.print=function(){};h.aa=function(){};h.status=function(a){this.aa(this.type+": "+a)};h.G=function(a,b,c){if(!b){var d=$a("Computer",this.id);if(d&&d.j.fd)return console.log("ignoring notice during unload: "+a),!1}c=c||this.type;b||r((c?c+": ":"")+a);return!0};function gb(a,b){b&&(a.j.ready?b():a.gc=b);return a.j.ready}
|
||||
function B(a,b){a.j.error||(a.j.ready=!1!==b,a.j.ready&&(b=a.gc,a.gc=null,b&&b()))}function hb(a,b){a.j.Xc?(a.j.Ra=!1,a.j.Xc=!1):a.j.error?a.aa(a.toString()+" error"):a.j.Ra=b}h.la=function(){return this.j.S=!0};h.ka=function(a,b){b&&(this.j.S=!1);return!0};var fb={$i:"notice",Bj:"warning",ERROR:"error",he:"progress"};
|
||||
function B(a,b){a.j.error||(a.j.ready=!1!==b,a.j.ready&&(b=a.gc,a.gc=null,b&&b()))}function hb(a,b){a.j.Xc?(a.j.Ra=!1,a.j.Xc=!1):a.j.error?a.aa(a.toString()+" error"):a.j.Ra=b}h.la=function(){return this.j.S=!0};h.ka=function(a,b){b&&(this.j.S=!1);return!0};var fb={ERROR:"error",$i:"notice",he:"progress",SCRIPT:"script",Bj:"warning"};
|
||||
window&&(window.PCjs||(window.PCjs={}),window.PCjs.Machines||(window.PCjs.Machines={}),window.PCjs.Components||(window.PCjs.Components=[]),window.PCjs.Commands||(window.PCjs.Commands={}));
|
||||
var Ua=window?window.PCjs.Machines:{},u=window?window.PCjs.Components:[],bb=window?window.PCjs.Commands:{},cb=["hold","sleep","wait"],db={alert:function(a){r(a);return!0},sleep:function(a,b){setTimeout(a,+b);return!1}},eb={select:function(a,b,c){var d=!1;if(a=a.bindings[b])for(b=0;b<a.options.length;b++)if(a.options[b].textContent==c){a.selectedIndex!=b&&(a.selectedIndex=b);d=!0;break}return d}};
|
||||
Array.prototype.indexOf||(Array.prototype.indexOf=function(a,b){b=b||0;for(var c=this.length;b<c;b++)if(this[b]===a)return b;return-1});Array.isArray||(Array.isArray=function(a){return"[object Array]"===Object.prototype.toString.call(a)});
|
||||
|
|
|
|||
Loading…
Reference in a new issue