diff --git a/src/util/CanvasProvider.js b/src/util/CanvasProvider.js index 2c0730b6..6bf21076 100644 --- a/src/util/CanvasProvider.js +++ b/src/util/CanvasProvider.js @@ -3,7 +3,7 @@ // speed by not having to do canvas.getContext('2d') // TODO: Run through the canvas array to find a canvas with the requested // width / height, so we don't need to resize it? -CanvasProvider = { +var CanvasProvider = { canvases: [], getCanvas: function(size) { if (this.canvases.length) { @@ -31,4 +31,4 @@ CanvasProvider = { returnCanvas: function(canvas) { this.canvases.push(canvas); } -}; \ No newline at end of file +}; diff --git a/src/util/MathUtils.js b/src/util/MathUtils.js index 8ec3d832..966ca4ea 100644 --- a/src/util/MathUtils.js +++ b/src/util/MathUtils.js @@ -1,4 +1,4 @@ -MathUtils = { +var MathUtils = { // TODO: 64 bit: 53 digits, 32 bit: 24 digits // TODO: Naming? What is MANT standing for? MANT_DIGITS: 53, @@ -211,4 +211,4 @@ MathUtils = { } return { b: b, area: area }; } -} \ No newline at end of file +};