From 34b6352a5725ed860ed8e21c1c9c9bb3182af043 Mon Sep 17 00:00:00 2001 From: Mat Groves Date: Thu, 23 May 2013 22:57:59 +0100 Subject: [PATCH] Text update --- src/pixi/text/Text.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pixi/text/Text.js b/src/pixi/text/Text.js index 3e973a8..60bec8c 100644 --- a/src/pixi/text/Text.js +++ b/src/pixi/text/Text.js @@ -25,7 +25,7 @@ PIXI.Text = function(text, style) this.setStyle(style); this.updateText(); -+ this.dirty = false; + this.dirty = false; }; // constructor @@ -73,7 +73,7 @@ PIXI.Text.prototype.updateText = function() this.context.font = this.style.font; //split text into lines - var lines = this.text.split("\n"); + var lines = this.text.split(/(?:\r\n|\r|\n)/); //calculate text width var lineWidths = [];