From 885b404b9801e4a9c157288075aa0dc293bfe2f4 Mon Sep 17 00:00:00 2001 From: Chris Andrew Date: Thu, 14 Jun 2018 14:41:17 +0100 Subject: [PATCH] Fixed the indentation of setStyle() examples. --- src/gameobjects/text/TextStyle.js | 14 +++++++------- src/gameobjects/text/static/Text.js | 12 ++++++------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/gameobjects/text/TextStyle.js b/src/gameobjects/text/TextStyle.js index 72a2f4075..ab2182c34 100644 --- a/src/gameobjects/text/TextStyle.js +++ b/src/gameobjects/text/TextStyle.js @@ -326,13 +326,13 @@ var TextStyle = new Class({ * For example: * * ```javascript - * text.style.setStyle({ - * fontSize: '64px', - * fontFamily: 'Arial', - * color: '#ffffff', - * align: 'center', - * backgroundColor: '#ff00ff' - * }); + * text.setStyle({ + * fontSize: '64px', + * fontFamily: 'Arial', + * color: '#ffffff', + * align: 'center', + * backgroundColor: '#ff00ff' + * }); * ``` * * @method Phaser.GameObjects.Text.TextStyle#setStyle diff --git a/src/gameobjects/text/static/Text.js b/src/gameobjects/text/static/Text.js index 664127c34..71267a9a9 100644 --- a/src/gameobjects/text/static/Text.js +++ b/src/gameobjects/text/static/Text.js @@ -546,12 +546,12 @@ var Text = new Class({ * * ```javascript * text.setStyle({ - * fontSize: '64px', - * fontFamily: 'Arial', - * color: '#ffffff', - * align: 'center', - * backgroundColor: '#ff00ff' - * }); + * fontSize: '64px', + * fontFamily: 'Arial', + * color: '#ffffff', + * align: 'center', + * backgroundColor: '#ff00ff' + * }); * ``` * * @method Phaser.GameObjects.Text#setStyle