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
|
|
@ -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