Explorar o código

Simplified AudioContext.

Mr.doob %!s(int64=9) %!d(string=hai) anos
pai
achega
435103fe5e
Modificáronse 1 ficheiros con 3 adicións e 5 borrados
  1. 3 5
      src/audio/AudioContext.js

+ 3 - 5
src/audio/AudioContext.js

@@ -1,8 +1,6 @@
 var context;
 
-function AudioContext() {}
-
-Object.assign( AudioContext, {
+var AudioContext = {
 
 	getContext: function () {
 
@@ -19,9 +17,9 @@ Object.assign( AudioContext, {
 	setContext: function ( value ) {
 
 		context = value;
-		
+
 	}
 
-} );
+};
 
 export { AudioContext };