mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 07:42:38 +08:00
remove redundant code
This commit is contained in:
@@ -489,11 +489,6 @@ var Label = cc.Class({
|
||||
__preload: function () {
|
||||
this._super();
|
||||
|
||||
var sgSizeInitialized = this._sgNode._isUseSystemFont;
|
||||
if (sgSizeInitialized) {
|
||||
this._updateNodeSize();
|
||||
}
|
||||
|
||||
// node should be resize whenever font changed, needed only on web
|
||||
if (!CC_JSB) {
|
||||
this._sgNode.on('load', this._updateNodeSize, this);
|
||||
|
||||
Reference in New Issue
Block a user