Skip to content

Commit 907a39b

Browse files
committedJul 12, 2011
Cleanup
1 parent 9aa28d2 commit 907a39b

File tree

6 files changed

+14
-13
lines changed

6 files changed

+14
-13
lines changed
 

‎Canvas.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Canvas.prototype.setTool = function(tool) {
117117

118118
Canvas.prototype.getTool = function() {
119119
return this.tool;
120-
}
120+
};
121121

122122
/*
123123
* Some event handlers are registered here but others may be registered within
@@ -129,7 +129,7 @@ Canvas.prototype.activateEventHandlers = function()
129129
{
130130
this.htmlCanvas.addEventListener('mousedown', this.eventHandler, false);
131131
this.htmlCanvas.addEventListener('mouseup', this.eventHandler, false);
132-
}
132+
};
133133

134134
/*
135135
* This method is called from outside of the context of the canvas object
@@ -142,4 +142,4 @@ Canvas.prototype.eventHandler = function(oEvent)
142142
if(tool && tool[func]) {
143143
tool[func](oEvent);
144144
}
145-
}
145+
};

‎Figure.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ Figure.prototype.getLocation = function() {
125125
*/
126126
Figure.prototype.getBounds = function() {
127127
throw new Error('AbstractMethod');
128-
}
128+
};
129129

130130
Figure.prototype.update = function(observable) {
131131
throw new Error('AbstractMethod');
132-
};
132+
};

‎LineFigure.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ LineFigure.prototype = new Figure();
2424
LineFigure.prototype.doPaint = function() {
2525
this.canvas.setColor(this.getColor());
2626
this.canvas.drawLine(this.start.getX(), this.start.getY(), this.end.getX(), this.end.getY());
27-
}
27+
};
2828

2929
LineFigure.prototype.touches = function(testPoint) {
3030

@@ -45,13 +45,13 @@ LineFigure.prototype.setLocation = function(point) {
4545

4646
LineFigure.prototype.getLocation = function() {
4747
return this.mid;
48-
}
48+
};
4949

5050
LineFigure.prototype.getBounds = function() {
5151
return new Rectangle(this.mid, this.end.getX() - this.start.getX(), this.end.getY() - this.start.getY());
5252
};
5353

5454
LineFigure.prototype.toString = function() {
5555
return 'LineFigure:' + this.start + '@' + this.end;
56-
}
56+
};
5757

‎Logger.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function Logger() {
1010
document.body.appendChild(this.logger);
1111

1212
// initialize log levels
13-
var i = 0
13+
var i = 0;
1414
Logger.DEBUG = i++;
1515
Logger.ERROR = i++;
1616
}
@@ -20,7 +20,8 @@ Logger.prototype.log = function(msg, log_level) {
2020
if (! log_level) {
2121
log_level = Logger.DEBUG;
2222
}
23-
this.logger.value = this.formatDate(now) + ":" + msg + "\n" + this.logger.value;
23+
this.logger.value = this.formatDate(now) + ":" + msg +
24+
"\n" + this.logger.value;
2425
};
2526

2627
Logger.prototype.formatDate = function(date)

‎main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function init() {
1717

1818
sl.canvas.addFigure(line);
1919
sl.canvas.addFigure(rect);
20-
sl.canvas.repaint()
20+
sl.canvas.repaint();
2121

2222
var st = new SelectionTool(sl.canvas);
2323
sl.canvas.setTool(st);

‎util.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Observable.prototype.notify = function() {
5454
for (var i = 0; this.observers[i]; i++) {
5555
this.observers[i].update(this);
5656
}
57-
}
57+
};
5858

5959
function Point(x,y) {
6060
if (x === undefined || y === undefined) {
@@ -160,4 +160,4 @@ Geometry.linePointIntersect = function(startPoint, endPoint, testPoint, radius)
160160
};
161161
Geometry.linePointAppxIntersect = function(startPoint, endPoint, testPoint) {
162162
return Geometry.linePointIntersect(startPoint, endPoint, testPoint, 3);
163-
};
163+
};

0 commit comments

Comments
 (0)
Please sign in to comment.