提交 1a19ce43 编写于 作者: J Jason Park

minor

上级 37c9a5e2
......@@ -12,8 +12,8 @@ var Array1D = {
};
// Override
Array1DTracer.prototype.setData = function (D) {
return Array2DTracer.prototype.setData.call(this, [D]);
Array1DTracer.prototype._setData = function (D) {
return Array2DTracer.prototype._setData.call(this, [D]);
};
// Override
......
......@@ -43,14 +43,14 @@ var Array2D = {
};
// Override
Array2DTracer.prototype.setData = function (D) {
Array2DTracer.prototype._setData = function (D) {
this.D = D;
this.viewX = this.viewY = 0;
this.paddingH = 6;
this.paddingV = 3;
this.fontSize = 16;
if (Tracer.prototype.setData.call(this, arguments)) {
if (Tracer.prototype._setData.call(this, arguments)) {
$('.mtbl-row').each(function (i) {
$(this).children().each(function (j) {
$(this).text(D[i][j]);
......
......@@ -57,7 +57,7 @@ GraphTracer.prototype.setTreeData = function (G, root) {
};
getDepth(root, 1);
if (this.setData(G, root)) return true;
if (this._setData(G, root)) return true;
var place = function (node, x, y) {
var temp = graph.nodes(n(node));
......@@ -84,8 +84,8 @@ GraphTracer.prototype.setTreeData = function (G, root) {
};
// Override
GraphTracer.prototype.setData = function (G) {
if (Tracer.prototype.setData.call(this, arguments)) return true;
GraphTracer.prototype._setData = function (G) {
if (Tracer.prototype._setData.call(this, arguments)) return true;
graph.clear();
var nodes = [];
......
......@@ -39,8 +39,8 @@ var WeightedGraph = {
};
// Override
WeightedGraphTracer.prototype.setData = function (G) {
if (Tracer.prototype.setData.call(this, arguments)) return true;
WeightedGraphTracer.prototype._setData = function (G) {
if (Tracer.prototype._setData.call(this, arguments)) return true;
graph.clear();
var nodes = [];
......
......@@ -30,7 +30,7 @@ Tracer.prototype.reset = function () {
Tracer.prototype.createRandomData = function (arguments) {
};
Tracer.prototype.setData = function (arguments) {
Tracer.prototype._setData = function (arguments) {
var data = JSON.stringify(arguments);
if (lastModule == this.module && lastData == data) return true;
lastData = data;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册