Make sure utility objects stay in paper scope.

This commit is contained in:
Jürg Lehni 2011-03-03 16:32:39 +00:00
parent aed8b0a6bc
commit dc75e14c59
2 changed files with 4 additions and 4 deletions

View file

@ -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);
}
};
};

View file

@ -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 };
}
}
};