提交 9cf277b1 编写于 作者: J Jason Park

remove module argument in constructor

上级 6943891b
function Array1DTracer(module) {
return Array2DTracer.call(this, module || Array1DTracer);
return Array2DTracer.call(this);
}
Array1DTracer.prototype = $.extend(true, Object.create(Array2DTracer.prototype), {
......
function Array2DTracer(module) {
if (Tracer.call(this, module || Array2DTracer)) {
if (Tracer.call(this)) {
Array2DTracer.prototype.init.call(this);
return true;
}
......
function DirectedGraphTracer(module) {
if (Tracer.call(this, module || DirectedGraphTracer)) {
if (Tracer.call(this)) {
DirectedGraphTracer.prototype.init.call(this);
return true;
}
......
function LogTracer(module) {
if (Tracer.call(this, module || LogTracer)) {
if (Tracer.call(this)) {
LogTracer.prototype.init.call(this);
return true;
}
......
function Tracer(module) {
this.module = module || Tracer;
function Tracer() {
this.module = this.constructor;
this.capsule = tm.allocate(this);
$.extend(this, this.capsule);
if (this.new) {
......
function UndirectedGraphTracer(module) {
if (DirectedGraphTracer.call(this, module || UndirectedGraphTracer)) {
if (DirectedGraphTracer.call(this)) {
UndirectedGraphTracer.prototype.init.call(this);
return true;
}
......
function WeightedDirectedGraphTracer(module) {
if (DirectedGraphTracer.call(this, module || WeightedDirectedGraphTracer)) {
if (DirectedGraphTracer.call(this)) {
WeightedDirectedGraphTracer.prototype.init.call(this);
return true;
}
......
function WeightedUndirectedGraphTracer(module) {
if (WeightedDirectedGraphTracer.call(this, module || WeightedUndirectedGraphTracer)) {
if (WeightedDirectedGraphTracer.call(this)) {
WeightedUndirectedGraphTracer.prototype.init.call(this);
return true;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册