File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -88,13 +88,13 @@ define(function (require) {
88
88
! window . hasOwnProperty ( 'AudioContext' ) ) {
89
89
window . AudioContext = webkitAudioContext ;
90
90
91
- if ( ! AudioContext . prototype . hasOwnProperty ( ' createGain' ) )
91
+ if ( typeof AudioContext . prototype . createGain !== 'function' )
92
92
AudioContext . prototype . createGain = AudioContext . prototype . createGainNode ;
93
- if ( ! AudioContext . prototype . hasOwnProperty ( ' createDelay' ) )
93
+ if ( typeof AudioContext . prototype . createDelay !== 'function' )
94
94
AudioContext . prototype . createDelay = AudioContext . prototype . createDelayNode ;
95
- if ( ! AudioContext . prototype . hasOwnProperty ( ' createScriptProcessor' ) )
95
+ if ( typeof AudioContext . prototype . createScriptProcessor !== 'function' )
96
96
AudioContext . prototype . createScriptProcessor = AudioContext . prototype . createJavaScriptNode ;
97
- if ( ! AudioContext . prototype . hasOwnProperty ( ' createPeriodicWave' ) )
97
+ if ( typeof AudioContext . prototype . createPeriodicWave !== 'function' )
98
98
AudioContext . prototype . createPeriodicWave = AudioContext . prototype . createWaveTable ;
99
99
100
100
@@ -167,7 +167,7 @@ define(function (require) {
167
167
return node ;
168
168
} ;
169
169
170
- if ( AudioContext . prototype . hasOwnProperty ( 'createOscillator' ) ) {
170
+ if ( typeof AudioContext . prototype . createOscillator !== 'function' ) {
171
171
AudioContext . prototype . internal_createOscillator = AudioContext . prototype . createOscillator ;
172
172
AudioContext . prototype . createOscillator = function ( ) {
173
173
var node = this . internal_createOscillator ( ) ;
You can’t perform that action at this time.
0 commit comments