Browse Source

Variable 'result' should be defined in strict mode

Temechon 11 years ago
parent
commit
9400008d32
1 changed files with 2 additions and 2 deletions
  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);
         }
     };
-})();
+})();