title: Leaflet zoom not working for no reason
body: <p>I am having a few problems with leaflet zoom for seemingly no reason.</p>
  
  <p>I have written the following function.</p>
  
  <pre><code>function set_view(lat,lon,min_zoom)
  {
  
      var zoom = current_map.getZoom();
      alert(typeof zoom);
  
  
  
      if(typeof min_zoom != 'undefined')
      {
          if(min_zoom&gt;=zoom)
          {
              zoom = min_zoom;
                          alert(typeof zoom);
          }
      }
  
  
      current_map.setView(new L.LatLng(lat, lon),zoom);
  
  }
  </code></pre>
  
  <p>Essentially if i pass in a min_zoom value I get the first alert which states that the current zoom is a number, then I get a second alert saying that the min_zoom passed is also a number. I.E Both are the same type.</p>
  
  <p>If I have a min_zoom passed in, my view is set but at full zoom and with no zoom controls working.</p>
  
  <p>If i do not pass a min_zoom value my map is shown perfectly at the current zoom level.</p>
  
  <p>This makes no sense. The exact same value from two different places gives two different results..</p>
  
  <p>Why is this not working and instead breaking the map if a min_zoom is passed?</p>
  
  <p>Thanks</p>