提交 e0686f2a 编写于 作者: J Jason Park

Rename method wait to delay, notify to patch, and denotify to depatch

上级 d85faa90
Subproject commit b87f7d53ba62f7d3ec147caa71f188805be22be3
Subproject commit f5f68df953b3654943d4d5050993152b1be50227
Subproject commit 9006b44cb9bbbce2e230d2c26f52857a4dc6d185
Subproject commit 1480952ea2b82cc49ae2bffbafbbf246b66a343d
......@@ -13,12 +13,12 @@ class Array1DData extends Array2DData {
this.syncChartData();
}
notify(x, v) {
super.notify(0, x, v);
patch(x, v) {
super.patch(0, x, v);
}
denotify(x) {
super.denotify(0, x);
depatch(x) {
super.depatch(0, x);
}
select(s, e = s) {
......
......@@ -18,12 +18,12 @@ class Array2DData extends Data {
super.set();
}
notify(x, y, v = this.data[x][y].value) {
patch(x, y, v = this.data[x][y].value) {
this.data[x][y].value = v;
this.data[x][y].notified = true;
}
denotify(x, y) {
depatch(x, y) {
this.data[x][y].notified = false;
}
......
......@@ -31,7 +31,7 @@ class Data {
set() {
}
wait() {
delay() {
}
}
......
......@@ -113,14 +113,14 @@ class TracerManager {
return true;
} else {
const data = this.datas[tracerKey];
const wait = method === 'wait';
const delay = method === 'delay';
const newArgs = [...args];
if (wait) {
if (delay) {
const lineNumber = newArgs.shift();
this.setLineIndicator({ lineNumber, cursor: this.cursor });
}
data[method](...newArgs);
return !wait;
return !delay;
}
} catch (error) {
if (this.started) this.handleError(error);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册