From 6cfc5d49e7bda41422438b9c4f2e3adc7135a231 Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Thu, 24 May 2018 23:17:33 +0100 Subject: [PATCH] The AudioContextMonkeyPatch has been updated to use an iife. Fix #3437 --- CHANGELOG.md | 1 + src/polyfills/AudioContextMonkeyPatch.js | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) 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)); - +})();