Skip to content

Commit c6000d2

Browse files
committed
removed some unnecessary stuff for hide and show-events
1 parent b880316 commit c6000d2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

CCBoot.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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+++++++++++++++++++++++++++++

0 commit comments

Comments
 (0)