Skip to content

Commit

Permalink
The AudioContextMonkeyPatch has been updated to use an iife. Fix #3437
Browse files Browse the repository at this point in the history
  • Loading branch information
photonstorm committed May 24, 2018
1 parent 3d9da06 commit 6cfc5d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
7 changes: 3 additions & 4 deletions src/polyfills/AudioContextMonkeyPatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -178,5 +178,4 @@ BiquadFilterNode.type and OscillatorNode.type.
window.OfflineAudioContext = webkitOfflineAudioContext;
}

}(window));

})();

0 comments on commit 6cfc5d4

Please sign in to comment.