Skip to content

Commit 6cfc5d4

Browse files
committed
The AudioContextMonkeyPatch has been updated to use an iife. Fix phaserjs#3437
1 parent 3d9da06 commit 6cfc5d4

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
* Container removeHandler will re-instate a child's Scene shutdown listener.
3838
* Container preDestroy now handles the pre-destroy calls, such as clearing the container.
3939
* Blitter preDestroy will now clear the children List and renderList.
40+
* The AudioContextMonkeyPatch has been updated to use an iife. Fix #3437 (thanks @NebSehemvi)
4041

4142
### Bug Fixes
4243

src/polyfills/AudioContextMonkeyPatch.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ and string types for AudioPannerNode.panningModel, AudioPannerNode.distanceModel
4747
BiquadFilterNode.type and OscillatorNode.type.
4848
4949
*/
50-
(function (global, exports, perf) {
51-
'use strict';
50+
51+
(function () {
5252

5353
function fixSetTarget(param) {
5454
if (!param) // if NYI, just return
@@ -178,5 +178,4 @@ BiquadFilterNode.type and OscillatorNode.type.
178178
window.OfflineAudioContext = webkitOfflineAudioContext;
179179
}
180180

181-
}(window));
182-
181+
})();

0 commit comments

Comments
 (0)