@@ -92,7 +92,7 @@ ccui.RichElementCustomNode.prototype._ctor = function(tag, color, opacity, custo
92
92
} ;
93
93
94
94
jsb . EventListenerAssetsManager . prototype . _ctor = function ( assetsManager , callback ) {
95
- callback && this . init ( assetsManager , callback ) ;
95
+ callback !== undefined && this . init ( assetsManager , callback ) ;
96
96
} ;
97
97
98
98
cc . Scale9Sprite . prototype . _ctor = function ( file , rect , capInsets ) {
@@ -158,11 +158,11 @@ cc.ControlSlider.prototype._ctor = function(bgFile, progressFile, thumbFile){
158
158
} ;
159
159
160
160
cc . ControlStepper . prototype . _ctor = function ( minusSprite , plusSprite ) {
161
- plusSprite && this . initWithMinusSpriteAndPlusSprite ( minusSprite , plusSprite ) ;
161
+ plusSprite !== undefined && this . initWithMinusSpriteAndPlusSprite ( minusSprite , plusSprite ) ;
162
162
} ;
163
163
164
164
cc . ControlSwitch . prototype . _ctor = function ( maskSprite , onSprite , offSprite , thumbSprite , onLabel , offLabel ) {
165
- offLabel && this . initWithMaskSprite ( maskSprite , onSprite , offSprite , thumbSprite , onLabel , offLabel ) ;
165
+ offLabel !== undefined && this . initWithMaskSprite ( maskSprite , onSprite , offSprite , thumbSprite , onLabel , offLabel ) ;
166
166
} ;
167
167
168
168
cc . TableView . prototype . _ctor = function ( dataSouurce , size , container ) {
@@ -181,19 +181,19 @@ cc.ScrollView.prototype._ctor = function(size, container) {
181
181
/************************ Cocostudio *************************/
182
182
183
183
ccs . Armature . prototype . _ctor = function ( name , parentBone ) {
184
- parentBone && ccs . Armature . prototype . init . call ( this , name , parentBone ) ;
184
+ parentBone !== undefined && ccs . Armature . prototype . init . call ( this , name , parentBone ) ;
185
185
} ;
186
186
187
187
ccs . Bone . prototype . _ctor = function ( name ) {
188
- name && ccs . Bone . prototype . init . call ( this , name ) ;
188
+ name !== undefined && ccs . Bone . prototype . init . call ( this , name ) ;
189
189
} ;
190
190
191
191
ccs . ArmatureAnimation . prototype . _ctor = function ( armature ) {
192
- armature && ccs . ArmatureAnimation . prototype . init . call ( this , armature ) ;
192
+ armature !== undefined && ccs . ArmatureAnimation . prototype . init . call ( this , armature ) ;
193
193
} ;
194
194
195
195
ccs . Tween . prototype . _ctor = function ( bone ) {
196
- bone && ccs . Tween . prototype . init . call ( this , bone ) ;
196
+ bone !== undefined && ccs . Tween . prototype . init . call ( this , bone ) ;
197
197
} ;
198
198
199
199
ccs . BatchNode . prototype . _ctor = function ( ) {
@@ -205,7 +205,7 @@ ccs.DecorativeDisplay.prototype._ctor = function() {
205
205
} ;
206
206
207
207
ccs . DisplayManager . prototype . _ctor = function ( bone ) {
208
- bone && ccs . DisplayManager . prototype . init . call ( this , bone ) ;
208
+ bone !== undefined && ccs . DisplayManager . prototype . init . call ( this , bone ) ;
209
209
} ;
210
210
211
211
ccs . Skin . prototype . _ctor = function ( fileName , rect ) {
@@ -222,7 +222,7 @@ ccs.Skin.prototype._ctor = function(fileName, rect) {
222
222
} ;
223
223
224
224
ccs . ColliderDetector . prototype . _ctor = function ( bone ) {
225
- bone && ccs . ColliderDetector . prototype . init . call ( this , bone ) ;
225
+ bone !== undefined && ccs . ColliderDetector . prototype . init . call ( this , bone ) ;
226
226
} ;
227
227
228
228
ccs . TriggerObj . prototype . _ctor = function ( ) {
0 commit comments