remove redundant code

This commit is contained in:
knoxHuang
2017-08-17 14:19:57 +08:00
parent 53cead8fdb
commit 565c42ff7f
-5
View File
@@ -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);