提交 185573d7 编写于 作者: J Jason Park

minor

上级 5dbf2c5f
...@@ -12,33 +12,20 @@ Array2DTracer.prototype = $.extend(true, Object.create(Tracer.prototype), { ...@@ -12,33 +12,20 @@ Array2DTracer.prototype = $.extend(true, Object.create(Tracer.prototype), {
this.$table = this.capsule.$table = $('<div class="mtbl-table">'); this.$table = this.capsule.$table = $('<div class="mtbl-table">');
this.$container.append(this.$table); this.$container.append(this.$table);
}, },
_notify: function (x1, y1, v1, x2, y2, v2) { _notify: function (x, y, v) {
var second = x2 !== undefined && y2 !== undefined;
tm.pushStep(this.capsule, { tm.pushStep(this.capsule, {
type: 'notify', type: 'notify',
x: x1, x: x,
y: y1, y: y,
v: v1 v: v
}, !second);
if (second) tm.pushStep(this.capsule, {
type: 'notify',
x: x2,
y: y2,
v: v2
}); });
return this; return this;
}, },
_denotify: function (x1, y1, x2, y2) { _denotify: function (x, y) {
var second = x2 !== undefined && y2 !== undefined;
tm.pushStep(this.capsule, { tm.pushStep(this.capsule, {
type: 'denotify', type: 'denotify',
x: x1, x: x,
y: y1 y: y
});
if (second) tm.pushStep(this.capsule, {
type: 'denotify',
x: x2,
y: y2
}); });
return this; return this;
}, },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册