Explorar o código

replacing != with !== in connect and disconnect

vincent courtalon %!s(int64=10) %!d(string=hai) anos
pai
achega
cef285c955
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/audio/Audio.js

+ 2 - 2
src/audio/Audio.js

@@ -135,7 +135,7 @@ THREE.Audio.prototype.stop = function () {
 
 
 THREE.Audio.prototype.connect = function () {
 THREE.Audio.prototype.connect = function () {
 
 
-	if ( this.filter != null ) {
+	if ( this.filter !== null ) {
 
 
 		this.source.connect( this.filter );
 		this.source.connect( this.filter );
 		this.filter.connect( this.getOutput());
 		this.filter.connect( this.getOutput());
@@ -150,7 +150,7 @@ THREE.Audio.prototype.connect = function () {
 
 
 THREE.Audio.prototype.disconnect = function () {
 THREE.Audio.prototype.disconnect = function () {
 
 
-	if ( this.filter != null ) {
+	if ( this.filter !== null ) {
 
 
 		this.source.disconnect( this.filter );
 		this.source.disconnect( this.filter );
 		this.filter.disconnect( this.getOutput());
 		this.filter.disconnect( this.getOutput());

粤ICP备19079148号