Merge pull request #556 from photonstorm/dev

Fixes a rogue new-line character on the end of Text objects
This commit is contained in:
Mat Groves 2014-02-09 23:55:39 +00:00
commit 7f06fb3554

View file

@ -287,7 +287,11 @@ PIXI.Text.prototype.wordWrap = function(text)
result += words[j] + ' ';
}
}
result += '\n';
if (i < lines.length-1)
{
result += '\n';
}
}
return result;
};