Skip to content

Commit 3a7c0f7

Browse files
committed
Issue #4277: fixed a bug that Tests' title doesn't show after advanced compile
1 parent 379fcda commit 3a7c0f7

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.idea/cocos2d-js.iml

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frameworks/cocos2d-html5

Submodule cocos2d-html5 updated 103 files

samples/js-tests/src/BaseTestLayer/BaseTestLayer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ var BaseTestLayer = cc.LayerGradient.extend({
8282
// some tests use "this.title()" and others use "this._title";
8383
if( 'title' in this )
8484
t = this.title();
85-
else if('_title' in this )
85+
else if('_title' in this || this._title)
8686
t = this._title;
8787
return t;
8888
},

0 commit comments

Comments
 (0)