Skip to content
Browse files

console出力はけしとく

  • Loading branch information...
1 parent bdabbcf commit e5c31d854bfa91b0f609f5de0513176b60dbd462 @yappo committed
Showing with 0 additions and 26 deletions.
  1. +0 −17 share/js/jstapd.deferred.js
  2. +0 −9 share/js/jstapd.js
View
17 share/js/jstapd.deferred.js
@@ -16,32 +16,17 @@ jstapDeferred.prototype = {
next: function(cb, m){
this.dnext = new jstapDeferred();
this.dnext.cb = cb;
-window.console.log("SET id: " + this.id);
-window.console.log("SET: " + cb);
return this.dnext;
},
call: function(nextval){
if (this.error) return;
-//if (window.yappo) {
-window.console.log("おうっふ");
-//}
var retval;
-window.console.log("-RET id: " + this.id);
-window.console.log("-RET0: " + this.error);
-window.console.log("-RET1: " + retval);
-window.console.log("-RET2: " + this.dnext);
-if (this.dnext) window.console.log("-RET: " + this.dnext.cb);
try {
if (this.nextval !== null) nextval = this.nextval;
retval = this.cb.call(this, nextval);
} catch (e) {
this.error = e;
}
-window.console.log("+RET id: " + this.id);
-window.console.log("+RET0: " + this.error);
-window.console.log("+RET1: " + retval);
-window.console.log("+RET2: " + this.dnext);
-if (this.dnext) window.console.log("+RET: " + this.dnext.cb);
if (retval instanceof jstapDeferred) {
retval.dnext = this.dnext;
if (retval.dnext !== null) retval.dnext.nextval = nextval;
@@ -180,13 +165,11 @@ jstapDeferred.register('include', function(src){
// waiting testing done
jstapDeferred.register('wait_finish', function(){
var d = new jstapDeferred;
-window.console.log("start: あばばばば" + JSTAPd.tap_count + ', ' + JSTAPd.tap_tests);
if (JSTAPd.tap_tests == 0) {
d.call();
} else {
// async done mode
var do_async = function(){
-window.console.log("あばばばば" + JSTAPd.tap_count + ', ' + JSTAPd.tap_tests);
if (JSTAPd.tap_count >= JSTAPd.tap_tests) {
d.call();
} else {
View
9 share/js/jstapd.js
@@ -19,23 +19,16 @@ var queue_count = 1;
var dequeue = function(){
if (_is_dequeueing()) return;
in_dequeueing = true;
-window.console.log("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@: DEQUEUE: " + queue);
-window.console.log("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@: DEQUEUE: " + queue.length);
var obj = queue.shift() || { id: 'null', cb: null };
var cb = obj.cb;
if (cb && typeof cb == 'function') cb();
-window.console.log("====== start: dequeue: " + JSTAPd.tap_count + ", count=" + obj.id + ", CB= " + cb);
in_dequeueing = false;
};
var enqueue = function(cb){
-window.console.log("====== start: enqueue: " + JSTAPd.tap_count + ", count=" + queue_count + ", CB= " + cb);
queue.push({
cb: cb,
id: queue_count++
});
-window.console.log("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@: ENQUEUE: " + queue);
-window.queue_count = queue_count;
-window.queue = queue;
dequeue();
};
var _is_dequeueing = function(){ return is_xhr_running || in_dequeueing };
@@ -57,10 +50,8 @@ var get = function(prefix, query, cb){
query_stack.push(encodeURIComponent(k) + '=' + encodeURIComponent(query[k]));
}
-window.console.log("====== XHR get : " + JSTAPd.tap_count + ", " + uri);
r.open('GET', query_stack.join('&'));
r.onreadystatechange = function() {
-window.console.log("====== XHR get done : " + JSTAPd.tap_count + ", " + uri + ", " + r.readyState);
if (r.readyState == 4 && r.status == 200) {
if (cb && typeof cb == 'function') cb(r);
is_xhr_running--;

0 comments on commit e5c31d8

Please sign in to comment.
Something went wrong with that request. Please try again.