提交 560780ba 编写于 作者: J Jason Park

remove _sleep method

......@@ -13,9 +13,6 @@ Tracer.prototype = {
this.capsule.lastData = data;
return false;
},
_sleep: function (duration) {
tm.pushStep(this.capsule, {type: 'sleep', duration: duration});
},
_clear: function () {
tm.pushStep(this.capsule, {type: 'clear'});
},
......
......@@ -120,17 +120,8 @@ TracerManager.prototype = {
this.traceIndex = i;
var trace = this.traces[i];
var sleepDuration = 0;
trace.forEach(function (step) {
if (step.capsule == null) {
switch (step.type) {
case 'sleep':
sleepDuration = step.duration;
break;
}
} else {
step.capsule.tracer.processStep(step, options);
}
step.capsule.tracer.processStep(step, options);
});
if (!options.virtual) {
this.command('refresh');
......@@ -138,7 +129,7 @@ TracerManager.prototype = {
if (this.pause) return;
timer = setTimeout(function () {
tracer.step(i + 1, options);
}, sleepDuration || this.interval);
}, this.interval);
},
prevStep: function () {
$('#tab_trace .wrapper').empty();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部