1.0.4 release

This commit is contained in:
Richard Davey
2013-09-18 06:34:56 +01:00
parent a102859622
commit d9a49797c4
15 changed files with 1071 additions and 728 deletions
+7 -6
View File
@@ -103,23 +103,24 @@ Phaser.Canvas = {
addToDOM: function (canvas, parent, overflowHidden) {
parent = parent || '';
overflowHidden = overflowHidden || true;
if (typeof overflowHidden === 'undefined') { overflowHidden = true; }
if (parent !== '')
{
if (document.getElementById(parent))
{
document.getElementById(parent).appendChild(canvas);
if (overflowHidden)
{
document.getElementById(parent).style.overflow = 'hidden';
}
}
else
{
document.body.appendChild(canvas);
}
if (overflowHidden)
{
document.getElementById(parent).style.overflow = 'hidden';
}
}
else
{