File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -2178,11 +2178,11 @@ cc.game = /** @lends cc.game# */{
21782178 if ( this . _paused ) return ;
21792179 this . _paused = true ;
21802180 // Pause audio engine
2181- cc . audioEngine && cc . audioEngine . _pausePlaying ( ) ;
2181+ /* cc.audioEngine && cc.audioEngine._pausePlaying();
21822182 // Pause main loop
21832183 if (this._intervalId)
21842184 window.cancelAnimationFrame(this._intervalId);
2185- this . _intervalId = 0 ;
2185+ this._intervalId = 0;*/
21862186 } ,
21872187
21882188 /**
@@ -2192,9 +2192,9 @@ cc.game = /** @lends cc.game# */{
21922192 if ( ! this . _paused ) return ;
21932193 this . _paused = false ;
21942194 // Resume audio engine
2195- cc . audioEngine && cc . audioEngine . _resumePlaying ( ) ;
2195+ // cc.audioEngine && cc.audioEngine._resumePlaying();
21962196 // Resume main loop
2197- this . _runMainLoop ( ) ;
2197+ // this._runMainLoop();
21982198 } ,
21992199
22002200 /**
@@ -2594,12 +2594,12 @@ cc.game = /** @lends cc.game# */{
25942594 win . addEventListener ( "pageshow" , onShow , false ) ;
25952595 }
25962596
2597- /* cc.eventManager.addCustomListener(cc.game.EVENT_HIDE, function () {
2597+ cc . eventManager . addCustomListener ( cc . game . EVENT_HIDE , function ( ) {
25982598 cc . game . pause ( ) ;
25992599 } ) ;
26002600 cc . eventManager . addCustomListener ( cc . game . EVENT_SHOW , function ( ) {
26012601 cc . game . resume ( ) ;
2602- });*/
2602+ } ) ;
26032603 }
26042604} ;
26052605//+++++++++++++++++++++++++something about CCGame end+++++++++++++++++++++++++++++
You can’t perform that action at this time.
0 commit comments