Skip to content

Commit

Permalink
improve project data back compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
zilongshanren committed Jun 8, 2017
1 parent eb8611c commit 41896db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cocos2d/core/components/CCProgressBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ var ProgressBar = cc.Class({
animatable: false
},

_totalLength: 1,
_N$totalLength: 1,
/**
* !#en The total width or height of the bar sprite.
* !#zh 进度条实际的总长度
Expand All @@ -240,13 +240,13 @@ var ProgressBar = cc.Class({
range: [0, Number.MAX_VALUE],
tooltip: CC_DEV && 'i18n:COMPONENT.progress.total_length',
get: function () {
return this._totalLength;
return this._N$totalLength;
},
set: function(value) {
if (this.mode === Mode.FILLED) {
value = cc.clamp01(value);
}
this._totalLength = value;
this._N$totalLength = value;
this._updateBarStatus();
}
},
Expand Down

0 comments on commit 41896db

Please sign in to comment.