İPUCU

Seçenekler

WWW Scheduler

02-05-2015 15:36
#1
BomHackers - ait Kullanıcı Resmi (Avatar)
Üye
Üyelik tarihi:
04/2012
Nereden:
Dünya
Mesajlar:
1.614
Teşekkür (Etti):
40
Teşekkür (Aldı):
193
Konular:
181
Ticaret:
(0) %
Kod:
(function(){var e=this;function f(a){a=a.split(".");for(var b=e,c;c=a.shift();)if(null!=b[c])b=b[c];else return null;return b}function g(a,b,c){return a.call.apply(a.bind,arguments)}function k(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}
function l(a,b,c){l=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?g:k;return l.apply(null,arguments)}var m=Date.now||function(){return+new Date};function n(a,b){var c=a.split("."),d=e;c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var h;c.length&&(h=c.shift());)c.length||**** 0===b?d[h]?d=d[h]:d=d[h]={}:d[h]=b}
Function.prototype.bind=Function.prototype.bind||function(a,b){if(1<arguments.length){var c=Array.prototype.slice.call(arguments,1);c.unshift(this,a);return l.apply(null,c)}return l(this,a)};function p(){this.j=this.j;this.o=this.o}p.prototype.j=!1;p.prototype.isDisposed=function(){return this.j};p.prototype.dispose=function(){this.j||(this.j=!0,this.B())};p.prototype.B=function(){if(this.o)for(;this.o.length;)this.o.shift()()};function t(){p.call(this);this.c=[];this.c[3]=[];this.c[2]=[];this.c[1]=[];this.c[0]=[];this.f={};this.l=t.c;this.C=this.m=0;this.v=this.A=!1;this.h=[];this.D=l(this.F,this)}(function(){var a=t;function b(){}b.prototype=p.prototype;a.G=p.prototype;a.prototype=new b;a.base=function(a,b,h){for(var q=Array(arguments.length-2),r=2;r<arguments.length;r++)q[r-2]=arguments[r];return p.prototype[b].apply(a,q)}})();t.j="hidden";t.h=1E3/60;t.f=3;t.c=t.h-t.f;
function u(a,b,c){++a.C;var d=a.C;a.f[d]=b;a.A?a.h.push({id:d,priority:c}):(a.c[c].push(d),a.v||a.start());return d}function v(a){a.h.length=0;for(var b=3;0<=b;b--)a.c[b].length=0;a.f={};a.stop()}function w(a){try{a()}catch(b){(a=f("yt.www.errors.log"))&&a(b)}}
t.prototype.F=function(){this.stop();this.A=!0;for(var a=m()+this.l,b=this.c[3];b.length;){var c=this.f[b.shift()];c&&w(c)}for(b=2;0<=b;b--){for(var c=a,d=this.c[b];d.length&&m()<c;){var h=d.shift(),q=this.f[h];delete this.f[h];q&&w(q)}if(!(m()<c))break}this.A=!1;b=0;for(c=this.h.length;b<c;b++)d=this.h[b],this.c[d.priority].push(d.id);this.l=t.c;(a<=m()||this.h.length)&&this.start();this.h.length=0};t.prototype.start=function(){this.v=!1;0==this.m&&(this.m=window.setTimeout(this.D,1))};
t.prototype.pause=function(){this.stop();this.v=!0};t.prototype.stop=function(){window.clearTimeout(this.m);this.m=0};t.prototype.B=function(){v(this);this.stop();t.G.B.call(this)};function x(){var a=f("yt.scheduler.instance.instance_");if(!a||a.isDisposed())a=new t,n("yt.scheduler.instance.instance_",a);return a}function y(){var a=f("yt.scheduler.instance.instance_");a&&(a&&"function"==typeof a.dispose&&a.dispose(),n("yt.scheduler.instance.instance_",null))}function z(){v(x())}var A=f("yt.scheduler.instance.timerIdMap_")||{};function B(a,b,c){if(0==c)return-u(x(),a,b);var d=window.setTimeout(function(){var c=u(x(),a,b);A[d]=c},c);return d}
function C(a){var b=x(),c=m();w(a);a=m()-c;b.l-=a}function D(a){var b=x();if(0>a)delete b.f[-a];else{var c=A[a];c?(delete b.f[c],delete A[a]):window.clearTimeout(a)}}function E(){x().start()}function F(){x().pause()};function G(){}G.getInstance=function(){return G.c?G.c:G.c=new G};G.prototype.addTask=function(a){return B(a,2,0)};G.prototype.cancelTask=function(a){D(a)};if(!f("yt.scheduler.initialized")){n("yt.scheduler.instance.dispose",y);n("yt.scheduler.instance.addJob",B);n("yt.scheduler.instance.addImmediateJob",C);n("yt.scheduler.instance.cancelJob",D);n("yt.scheduler.instance.cancelAllJobs",z);n("yt.scheduler.instance.start",E);n("yt.scheduler.instance.pause",F);n("yt.scheduler.SpfScheduler.instance",G.getInstance());var H=G.getInstance(),I=G.getInstance().addTask;H.addTask=I;var J=G.getInstance(),K=G.getInstance().cancelTask;J.cancelTask=K;n("yt.scheduler.initialized",
!0)};})();
Kullanıcı İmzası
Şehitler ölmez vatan bölünmez
Atatürk Devrimleri


Bookmarks


« Önceki Konu | Sonraki Konu »
Seçenekler

Yetkileriniz
Sizin Yeni Konu Acma Yetkiniz var yok
You may not post replies
Sizin eklenti yükleme yetkiniz yok
You may not edit your posts

BB code is Açık
Smileler Açık
[IMG] Kodları Açık
HTML-Kodları Kapalı
Trackbacks are Kapalı
Pingbacks are Kapalı
Refbacks are Kapalı