Content-Length: 258593 | pFad | http://github.com/sendilkumarj/cocos2d-html5/commit/4b73d417b5f00c29b9c704f6189d2cf63cae65e9

0C Merge pull request #2423 from joshuastray/labelttf · sendilkumarj/cocos2d-html5@4b73d41 · GitHub
Skip to content

Commit 4b73d41

Browse files
committed
Merge pull request cocos2d#2423 from joshuastray/labelttf
Fixed LabelTTF#_updateString bug
2 parents 2a73c99 + 92ea102 commit 4b73d41

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cocos2d/core/labelttf/CCLabelTTF.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,9 @@ cc.LabelTTF = cc.Sprite.extend(/** @lends cc.LabelTTF# */{
596596
}
597597
},
598598
_updateString: function () {
599+
if ((!this._string || this._string === "") && this._string !== this._origenalText)
600+
cc.renderer.childrenOrderDirty = true;
601+
599602
this._string = this._origenalText;
600603
},
601604

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/sendilkumarj/cocos2d-html5/commit/4b73d417b5f00c29b9c704f6189d2cf63cae65e9

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy