Skip to content

Commit 2432766

Browse files
committed
remove module argument in constructor
1 parent f904a2c commit 2432766

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

js/module/array1d.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function Array1DTracer(module) {
2-
return Array2DTracer.call(this, module || Array1DTracer);
2+
return Array2DTracer.call(this);
33
}
44

55
Array1DTracer.prototype = $.extend(true, Object.create(Array2DTracer.prototype), {

js/module/array2d.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function Array2DTracer(module) {
2-
if (Tracer.call(this, module || Array2DTracer)) {
2+
if (Tracer.call(this)) {
33
Array2DTracer.prototype.init.call(this);
44
return true;
55
}

js/module/directed_graph.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function DirectedGraphTracer(module) {
2-
if (Tracer.call(this, module || DirectedGraphTracer)) {
2+
if (Tracer.call(this)) {
33
DirectedGraphTracer.prototype.init.call(this);
44
return true;
55
}

js/module/log_tracer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function LogTracer(module) {
2-
if (Tracer.call(this, module || LogTracer)) {
2+
if (Tracer.call(this)) {
33
LogTracer.prototype.init.call(this);
44
return true;
55
}

js/module/tracer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
function Tracer(module) {
2-
this.module = module || Tracer;
1+
function Tracer() {
2+
this.module = this.constructor;
33
this.capsule = tm.allocate(this);
44
$.extend(this, this.capsule);
55
if (this.new) {

js/module/undirected_graph.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function UndirectedGraphTracer(module) {
2-
if (DirectedGraphTracer.call(this, module || UndirectedGraphTracer)) {
2+
if (DirectedGraphTracer.call(this)) {
33
UndirectedGraphTracer.prototype.init.call(this);
44
return true;
55
}

js/module/weighted_directed_graph.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function WeightedDirectedGraphTracer(module) {
2-
if (DirectedGraphTracer.call(this, module || WeightedDirectedGraphTracer)) {
2+
if (DirectedGraphTracer.call(this)) {
33
WeightedDirectedGraphTracer.prototype.init.call(this);
44
return true;
55
}

js/module/weighted_undirected_graph.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function WeightedUndirectedGraphTracer(module) {
2-
if (WeightedDirectedGraphTracer.call(this, module || WeightedUndirectedGraphTracer)) {
2+
if (WeightedDirectedGraphTracer.call(this)) {
33
WeightedUndirectedGraphTracer.prototype.init.call(this);
44
return true;
55
}

0 commit comments

Comments
 (0)