Skip to content

Commit

Permalink
Remove trailing commas from Array and Object literals. This only matt…
Browse files Browse the repository at this point in the history
…ers for Internet Explorer, but it is probably considered a better way to write the code.
  • Loading branch information
deanm committed Jun 11, 2010
1 parent eb71a3b commit cde4fa8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions demos/demo_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ DemoUtils = (function() {
first_event: true,
is_clicking: false,
last_x: 0,
last_y: 0,
last_y: 0
};

function relXY(e) {
Expand Down Expand Up @@ -256,6 +256,6 @@ DemoUtils = (function() {
Ticker: Ticker,
registerMouseListener: registerMouseListener,
autoCamera: autoCamera,
ToggleToolbar: ToggleToolbar,
ToggleToolbar: ToggleToolbar
};
})();
6 changes: 3 additions & 3 deletions pre3d.js
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ Pre3d = (function() {
fill_rgba: this.fill_rgba,
stroke_rgba: this.stroke_rgba,
normal1_rgba: this.normal1_rgba,
normal2_rgba: this.normal2_rgba,
normal2_rgba: this.normal2_rgba
};

this.buffered_quads_.push(obj);
Expand Down Expand Up @@ -1088,7 +1088,7 @@ Pre3d = (function() {
unitVector3d: unitVector3d,
linearInterpolate: linearInterpolate,
linearInterpolatePoints3d: linearInterpolatePoints3d,
averagePoints: averagePoints,
},
averagePoints: averagePoints
}
};
})();
4 changes: 2 additions & 2 deletions pre3d_shape_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ Pre3d.ShapeUtils = (function() {
[i1, i2].sort(),
[i2, i3].sort(),
[i3, i0].sort(),
[i0, i1, i2, i3].sort(),
[i0, i1, i2, i3].sort()
];

for (var j = 0, jl = ni.length; j < jl; ++j) {
Expand Down Expand Up @@ -680,6 +680,6 @@ Pre3d.ShapeUtils = (function() {
averageSmooth: averageSmooth,
linearSubdivide: linearSubdivide,

Extruder: Extruder,
Extruder: Extruder
};
})();

0 comments on commit cde4fa8

Please sign in to comment.