File tree 2 files changed +10
-6
lines changed
2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -154,8 +154,12 @@ cc.Director = cc.Class.extend(/** @lends cc.Director# */{
154
154
//scheduler
155
155
this . _scheduler = new cc . Scheduler ( ) ;
156
156
//action manager
157
- this . _actionManager = cc . ActionManager ? new cc . ActionManager ( ) : null ;
158
- this . _scheduler . scheduleUpdate ( this . _actionManager , cc . Scheduler . PRIORITY_SYSTEM , false ) ;
157
+ if ( cc . ActionManager ) {
158
+ this . _actionManager = new cc . ActionManager ( ) ;
159
+ this . _scheduler . scheduleUpdate ( this . _actionManager , cc . Scheduler . PRIORITY_SYSTEM , false ) ;
160
+ } else {
161
+ this . _actionManager = null ;
162
+ }
159
163
160
164
this . _eventAfterDraw = new cc . EventCustom ( cc . Director . EVENT_AFTER_DRAW ) ;
161
165
this . _eventAfterDraw . setUserData ( this ) ;
Original file line number Diff line number Diff line change 5
5
classpath =" ./compiler/compiler.jar" />
6
6
<target name =" compile" >
7
7
<jscomp compilationLevel =" simple" warning =" quiet"
8
- debug =" false" output =" ./../lib/cocos2d-js-v3.4 -min.js" >
9
- <!-- sourceMapOutputFile="./../lib/cocos2d-js-v3.3-beta0 -sourcemap" sourceMapFormat="V3" -->
8
+ debug =" false" output =" ./../lib/cocos2d-js-v3.5 -min.js" >
9
+ <!-- sourceMapOutputFile="./../lib/cocos2d-js-v3.5 -sourcemap" sourceMapFormat="V3" -->
10
10
<sources dir =" ./../" >
11
11
<file name =" Base64Images.js" />
12
12
<file name =" CCBoot.js" />
298
298
299
299
<target name =" compile_core" >
300
300
<jscomp compilationLevel =" simple" warning =" quiet"
301
- debug =" false" output =" ./../lib/cocos2d-js-v3.4 -core-min.js" >
302
- <!-- sourceMapOutputFile="./../lib/cocos2d-js-v3.3-beta0 -core-sourcemap" sourceMapFormat="V3" -->
301
+ debug =" false" output =" ./../lib/cocos2d-js-v3.5 -core-min.js" >
302
+ <!-- sourceMapOutputFile="./../lib/cocos2d-js-v3.5 -core-sourcemap" sourceMapFormat="V3" -->
303
303
<sources dir =" ./../" >
304
304
<file name =" CCBoot.js" />
305
305
<file name =" cocos2d/core/platform/CCClass.js" />
You can’t perform that action at this time.
0 commit comments