diff --git a/CHANGELOG.md b/CHANGELOG.md index 65c678c17..f6ffda237 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,7 @@ * Container removeHandler will re-instate a child's Scene shutdown listener. * Container preDestroy now handles the pre-destroy calls, such as clearing the container. * Blitter preDestroy will now clear the children List and renderList. +* The AudioContextMonkeyPatch has been updated to use an iife. Fix #3437 (thanks @NebSehemvi) ### Bug Fixes diff --git a/src/polyfills/AudioContextMonkeyPatch.js b/src/polyfills/AudioContextMonkeyPatch.js index 8e5ed0ca4..2d89574a3 100644 --- a/src/polyfills/AudioContextMonkeyPatch.js +++ b/src/polyfills/AudioContextMonkeyPatch.js @@ -47,8 +47,8 @@ and string types for AudioPannerNode.panningModel, AudioPannerNode.distanceModel BiquadFilterNode.type and OscillatorNode.type. */ -(function (global, exports, perf) { - 'use strict'; + +(function () { function fixSetTarget(param) { if (!param) // if NYI, just return @@ -178,5 +178,4 @@ BiquadFilterNode.type and OscillatorNode.type. window.OfflineAudioContext = webkitOfflineAudioContext; } -}(window)); - +})();