Permalink
Browse files

Clean up some sloppy variable assignments.

  • Loading branch information...
deanm committed Jun 12, 2010
1 parent 3ea4ab2 commit 50e03ad9891a6aad7d97e28225cbedad5f90de1e
Showing with 3 additions and 3 deletions.
  1. +1 −1 demos/demo_utils.js
  2. +2 −2 pre3d.js
View
@@ -22,7 +22,7 @@
// mostly consists of UI helpers, like a toolbar for toggling modes, mouse
// and camera handling, etc.
-DemoUtils = (function() {
+var DemoUtils = (function() {
function min(a, b) {
if (a < b) return a;
View
@@ -76,7 +76,7 @@
// someMethod is duplicated on the function so that the name of the function
// is not anonymous, and it can be easier to debug and profile.
-Pre3d = (function() {
+var Pre3d = (function() {
// 2D and 3D point / vector / matrix math. Points and vectors are expected
// to have an x, y and z (if 3d) property. It is important to be consistent
@@ -1021,7 +1021,7 @@ Pre3d = (function() {
// properties you want (stroke color, etc). The drawing happens immediately.
Renderer.prototype.drawPath = function drawPath(path, opts) {
var ctx = this.ctx;
- var opts = opts || { };
+ opts = opts || { };
var t = multiplyAffine(this.camera.transform.m,
this.transform.m);

0 comments on commit 50e03ad

Please sign in to comment.