Explorar o código

Variable 'result' should be defined in strict mode

Temechon %!s(int64=11) %!d(string=hai) anos
pai
achega
9400008d32
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      Babylon/Cameras/babylon.camera.js

+ 2 - 2
Babylon/Cameras/babylon.camera.js

@@ -203,7 +203,7 @@ var BABYLON = BABYLON || {};
             this._postProcessesTakenIndices.push(insertAt);
         }
 
-        result = insertAt + add;
+        var result = insertAt + add;
 
         this._postProcesses[result] = postProcess;
 
@@ -325,4 +325,4 @@ var BABYLON = BABYLON || {};
             this._postProcesses[this._postProcessesTakenIndices[i]].dispose(this);
         }
     };
-})();
+})();