From 32b0c14e47e2d10b4620b8aae3ed525eb16f52b6 Mon Sep 17 00:00:00 2001 From: theshock Date: Thu, 12 Dec 2013 17:37:26 +0200 Subject: [PATCH] remove atom.patching require --- Source/Plugins/SpriteFont.js | 4 ++-- libcanvas-full-compiled.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Plugins/SpriteFont.js b/Source/Plugins/SpriteFont.js index b992549..5383373 100644 --- a/Source/Plugins/SpriteFont.js +++ b/Source/Plugins/SpriteFont.js @@ -216,8 +216,8 @@ atom.declare( 'LibCanvas.Plugins.SpriteFont.Render', { render: function (lines) { var x, y, w, l, i, from = this.options.shape.from; - for (l = 0, y = from.y.floor(); l < lines.length; l++) { - x = from.x.floor(); + for (l = 0, y = Math.floor(from.y); l < lines.length; l++) { + x = Math.floor(from.x); if (this.options.align != 'left') { w = lines[l].reduce(function (current, elem) { return current + elem.width }, 0); diff --git a/libcanvas-full-compiled.js b/libcanvas-full-compiled.js index d2c063d..e5a3a4d 100644 --- a/libcanvas-full-compiled.js +++ b/libcanvas-full-compiled.js @@ -5405,8 +5405,8 @@ atom.declare( 'LibCanvas.Plugins.SpriteFont.Render', { render: function (lines) { var x, y, w, l, i, from = this.options.shape.from; - for (l = 0, y = from.y.floor(); l < lines.length; l++) { - x = from.x.floor(); + for (l = 0, y = Math.floor(from.y); l < lines.length; l++) { + x = Math.floor(from.x); if (this.options.align != 'left') { w = lines[l].reduce(function (current, elem) { return current + elem.width }, 0);