Browse Source

Javascript cleanup

Baptiste Jonglez 9 years ago
parent
commit
cfa9ad43a7
1 changed files with 1 additions and 3 deletions
  1. 1 3
      panorama/static/panorama/js/pano.js

+ 1 - 3
panorama/static/panorama/js/pano.js

@@ -1004,8 +1004,6 @@ function get_orientation_from_url() {
     }
 }
 
-var initial_orientation;
-
 function load_pano() {
     localisation = document.getElementById("locadraw");
     adding = document.getElementById("adding");
@@ -1018,7 +1016,7 @@ function load_pano() {
     canvas.addEventListener("mouseout" , clean_canvas_events, false);
     show_links();
 
-    initial_orientation = get_orientation_from_url();
+    var initial_orientation = get_orientation_from_url();
     var to_zoom = initial_orientation.zoom;
 
     var max_zoom = zooms.length - 1;