@@ -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 ) {
@@ -187,19 +187,19 @@ cc.ScrollView.prototype._ctor = function(size, container) {
187
187
/************************ Cocostudio *************************/
188
188
189
189
ccs . Armature . prototype . _ctor = function ( name , parentBone ) {
190
- parentBone && ccs . Armature . prototype . init . call ( this , name , parentBone ) ;
190
+ parentBone !== undefined && ccs . Armature . prototype . init . call ( this , name , parentBone ) ;
191
191
} ;
192
192
193
193
ccs . Bone . prototype . _ctor = function ( name ) {
194
- name && ccs . Bone . prototype . init . call ( this , name ) ;
194
+ name !== undefined && ccs . Bone . prototype . init . call ( this , name ) ;
195
195
} ;
196
196
197
197
ccs . ArmatureAnimation . prototype . _ctor = function ( armature ) {
198
- armature && ccs . ArmatureAnimation . prototype . init . call ( this , armature ) ;
198
+ armature !== undefined && ccs . ArmatureAnimation . prototype . init . call ( this , armature ) ;
199
199
} ;
200
200
201
201
ccs . Tween . prototype . _ctor = function ( bone ) {
202
- bone && ccs . Tween . prototype . init . call ( this , bone ) ;
202
+ bone !== undefined && ccs . Tween . prototype . init . call ( this , bone ) ;
203
203
} ;
204
204
205
205
ccs . BatchNode . prototype . _ctor = function ( ) {
@@ -211,7 +211,7 @@ ccs.DecorativeDisplay.prototype._ctor = function() {
211
211
} ;
212
212
213
213
ccs . DisplayManager . prototype . _ctor = function ( bone ) {
214
- bone && ccs . DisplayManager . prototype . init . call ( this , bone ) ;
214
+ bone !== undefined && ccs . DisplayManager . prototype . init . call ( this , bone ) ;
215
215
} ;
216
216
217
217
ccs . Skin . prototype . _ctor = function ( fileName , rect ) {
@@ -228,7 +228,7 @@ ccs.Skin.prototype._ctor = function(fileName, rect) {
228
228
} ;
229
229
230
230
ccs . ColliderDetector . prototype . _ctor = function ( bone ) {
231
- bone && ccs . ColliderDetector . prototype . init . call ( this , bone ) ;
231
+ bone !== undefined && ccs . ColliderDetector . prototype . init . call ( this , bone ) ;
232
232
} ;
233
233
234
234
ccs . TriggerObj . prototype . _ctor = function ( ) {
0 commit comments