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
|
|
@ -79,7 +79,7 @@ l.toString=function(){return this.name?this.name:this.id||this.type};
|
|||
l.Cb=function(a,b,c){switch(b){case "clear":return this.na[b]||(this.na[b]=c,c.onclick=function(a){return function(){a.na.print&&(a.na.print.value="")}}(this)),!0;case "print":return this.na[b]||(this.na[b]=c,this.Ca=function(a){this.O(a,this.type);return!0},c.value="",this.print=function(a){return function(b){wb(a,b)}}(c),this.O=function(a,b){return function(a,c){a||(a="");c!=Lb.Ce||"..."!=a.slice(-3)?(c&&(a=c+": "+a),wb(b,a+"\n")):xb(b,a,a+".")}}(this,c)),!0;default:return!1}};l.log=function(){};
|
||||
l.print=function(){};l.O=function(){};l.status=function(a){this.O(this.type+": "+a)};l.Ca=function(a,b,c){if(!b){var d=zb("Computer",this.id);if(d&&d.ca.Tf)return console.log("ignoring notice during unload: "+a),!1}c=c||this.type;b||lb((c?c+": ":"")+a);return!0};function Mb(a,b){a.ca.error=!0;a.Ca(b)}function Nb(a,b){b&&(a.ca.ready?b():a.rg=b);return a.ca.ready}function Ob(a,b){a.ca.error||(a.ca.ready=!1!==b,a.ca.ready&&(b=a.rg,a.rg=null,b&&b()))}
|
||||
function Pb(a,b){a.ca.qf&&(b?a.ca.eh=!0:void 0===b&&a.O(a.toString()+" busy"));return a.ca.qf}function Qb(a,b){if(a.ca.eh)return a.ca.qf=!1,a.ca.eh=!1;if(a.ca.error)return a.O(a.toString()+" error"),!1;a.ca.qf=b;return a.ca.qf}l.Xb=function(){return this.ca.dc=!0};l.Wb=function(a,b){b&&(this.ca.dc=!1);return!0};function t(a,b){if(a.ba){a===a.ba?b|=0:b=b||a.ic;var c=a.ba.ic&b;return!!b&&c===b||!!(c&a.ba.zl)}return!1}function Rb(a,b,c,d){a.ba&&(!0===c||t(a,c|0))&&a.ba.message(b,d)}
|
||||
function w(a,b,c,d,e,f,g){a.ba&&(!0===g?g=0:null==g&&(g=a.ic),Sb(a.ba,a,b,c,d,e,f,g))}var Lb={Vp:"notice",gq:"warning",ERROR:"error",Ce:"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 w(a,b,c,d,e,f,g){a.ba&&(!0===g?g=0:null==g&&(g=a.ic),Sb(a.ba,a,b,c,d,e,f,g))}var Lb={ERROR:"error",Vp:"notice",Ce:"progress",SCRIPT:"script",gq:"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 ub=window?window.PCjs.Machines:{},rb=window?window.PCjs.Components:[],Gb=window?window.PCjs.Commands:{},Ib=["hold","sleep","wait"],Jb={alert:function(a){lb(a);return!0},sleep:function(a,b){setTimeout(a,+b);return!1}},Kb={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});
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ function lb(a){for(var b=!0,c=mb[a];c&&c.length;){var d=c.splice(0,1)[0],e=d[0],
|
|||
l.toString=function(){return this.name?this.name:this.id||this.type};
|
||||
l.yb=function(a,b,c){switch(b){case "clear":return this.ja[b]||(this.ja[b]=c,c.onclick=function(a){return function(){a.ja.print&&(a.ja.print.value="")}}(this)),!0;case "print":return this.ja[b]||(this.ja[b]=c,this.ua=function(a){this.ub(a,this.type);return!0},c.value="",this.print=function(a){return function(b){cb(a,b)}}(c),this.ub=function(a,b){return function(a,c){a||(a="");c!=qb.$d||"..."!=a.slice(-3)?(c&&(a=c+": "+a),cb(b,a+"\n")):db(b,a,a+".")}}(this,c)),!0;default:return!1}};l.log=function(){};
|
||||
l.print=function(){};l.ub=function(){};l.status=function(a){this.ub(this.type+": "+a)};l.ua=function(a,b,c){if(!b){var d=fb("Computer",this.id);if(d&&d.Z.jf)return console.log("ignoring notice during unload: "+a),!1}c=c||this.type;b||r((c?c+": ":"")+a);return!0};function rb(a,b){a.Z.error=!0;a.ua(b)}function sb(a,b){b&&(a.Z.ready?b():a.Hf=b);return a.Z.ready}function tb(a,b){a.Z.error||(a.Z.ready=!1!==b,a.Z.ready&&(b=a.Hf,a.Hf=null,b&&b()))}
|
||||
function ub(a,b){if(a.Z.pg)return a.Z.zf=!1,a.Z.pg=!1;if(a.Z.error)return a.ub(a.toString()+" error"),!1;a.Z.zf=b;return a.Z.zf}l.Pb=function(){return this.Z.Zb=!0};l.Ob=function(a,b){b&&(this.Z.Zb=!1);return!0};var qb={xo:"notice",Io:"warning",ERROR:"error",$d:"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 ub(a,b){if(a.Z.pg)return a.Z.zf=!1,a.Z.pg=!1;if(a.Z.error)return a.ub(a.toString()+" error"),!1;a.Z.zf=b;return a.Z.zf}l.Pb=function(){return this.Z.Zb=!0};l.Ob=function(a,b){b&&(this.Z.Zb=!1);return!0};var qb={ERROR:"error",xo:"notice",$d:"progress",SCRIPT:"script",Io:"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 ab=window?window.PCjs.Machines:{},Za=window?window.PCjs.Components:[],mb=window?window.PCjs.Commands:{},nb=["hold","sleep","wait"],ob={alert:function(a){r(a);return!0},sleep:function(a,b){setTimeout(a,+b);return!1}},pb={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