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
|
|
@ -60,7 +60,8 @@ l.toString=function(){return this.name?this.name:this.id||this.type};
|
|||
l.da=function(a,b,c){switch(b){case "clear":return this.P[b]||(this.P[b]=c,c.onclick=function(a){return function(){a.P.print&&(a.P.print.value="")}}(this)),!0;case "print":return this.P[b]||(this.P[b]=c,this.aa=function(a){this.i(a,this.type);return!0},c.value="",this.print=function(a){return function(b){lb(a,b)}}(c),this.i=function(a,b){return function(a,c){a||(a="");if(c!=zb.kd||"..."!=a.slice(-3))c&&(a=c+": "+a),lb(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}};l.log=function(){};l.print=function(){};l.i=function(){};l.status=function(a){this.i(this.type+": "+a)};l.aa=function(a,b,c){if(!b){var d=sb("Computer",this.id);if(d&&d.F.Qb)return console.log("ignoring notice during unload: "+a),!1}Za(a,b,c||this.type);return!0};function Ab(a,b){a.F.error=!0;a.aa(b)}
|
||||
function Bb(a,b){b&&(a.F.ready?b():a.xb=b);return a.F.ready}function Cb(a){if(!a.F.error&&(a.F.ready=!0,a.F.ready)){var b=a.xb;a.xb=null;b&&b()}}function Db(a,b){a.F.kb&&(b?a.F.Hb=!0:void 0===b&&a.i(a.toString()+" busy"));return a.F.kb}function Eb(a,b){if(a.F.Hb)return a.F.kb=!1,a.F.Hb=!1;if(a.F.error)return a.i(a.toString()+" error"),!1;a.F.kb=b;return a.F.kb}l.va=function(){return this.F.ja=!0};l.ua=function(a,b){b&&(this.F.ja=!1);return!0};
|
||||
function Fb(a,b){if(a.K){a===a.K?b|=0:b=b||a.ha;var c=a.K.ha&b;return!!b&&c===b||!!(c&a.K.xd)}return!1}function Gb(a,b){a.K&&Fb(a,0)&&a.K.message(b,void 0)}function x(a,b,c,d,e,f,g){a.K&&(!0===g?g=0:null==g&&(g=a.ha),Hb(a.K,a,b,c,d,e,f,g))}var zb={wf:"notice",Pf:"warning",ERROR:"error",kd:"progress"};window&&(window.PCjs||(window.PCjs={}),window.PCjs.Machines||(window.PCjs.Machines={}),window.PCjs.Components||(window.PCjs.Components=[]),window.PCjs.Commands||(window.PCjs.Commands={}));
|
||||
function Fb(a,b){if(a.K){a===a.K?b|=0:b=b||a.ha;var c=a.K.ha&b;return!!b&&c===b||!!(c&a.K.xd)}return!1}function Gb(a,b){a.K&&Fb(a,0)&&a.K.message(b,void 0)}function x(a,b,c,d,e,f,g){a.K&&(!0===g?g=0:null==g&&(g=a.ha),Hb(a.K,a,b,c,d,e,f,g))}var zb={ERROR:"error",wf:"notice",kd:"progress",SCRIPT:"script",Pf:"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 ib=window?window.PCjs.Machines:{},gb=window?window.PCjs.Components:[],ub=window?window.PCjs.Commands:{},vb=["hold","sleep","wait"],xb={alert:function(a){r(a);return!0},sleep:function(a,b){setTimeout(a,+b);return!1}},yb={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)});
|
||||
Function.prototype.bind||(Function.prototype.bind=function(a){function b(){return e.apply(this instanceof c&&a?this:a,d.concat(Array.prototype.slice.call(arguments)))}function c(){}if("function"!=typeof this)throw new TypeError("Function.prototype.bind: non-callable object");var d=Array.prototype.slice.call(arguments,1),e=this;c.prototype=this.prototype;b.prototype=new c;return b});
|
||||
|
|
|
|||
Loading…
Reference in a new issue