From dc75e14c59e7742fbd63be97ceb8db6ddbd0fb3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Thu, 3 Mar 2011 16:32:39 +0000 Subject: [PATCH] Make sure utility objects stay in paper scope. --- src/util/CanvasProvider.js | 4 ++-- src/util/MathUtils.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 +};