From 83d87d6e1abf7a480339b351a24054e2a7dc2653 Mon Sep 17 00:00:00 2001 From: 06wj <06wj@163.com> Date: Wed, 24 Oct 2018 10:17:02 +0800 Subject: [PATCH] fix: Fix bug when Text.text has no default value --- src/view/Text.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/view/Text.js b/src/view/Text.js index 1f711e55..ec2feb12 100644 --- a/src/view/Text.js +++ b/src/view/Text.js @@ -71,7 +71,7 @@ var Text = Class.create(/** @lends Text.prototype */{ this._fontHeight = Text.measureFontHeight(this.font); }, - text: null, + text: '', color: '#000', textAlign: null, textVAlign: null,